-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add type for high level api # 138 #139
Conversation
@carlkidcrypto since I'm not very sure about the type of value and if it's proper to add |
if the high level api type-hint is OK. I will try to make the whole python code well typed |
@wangxin688 yes, you can remove lines 1,3,5,8,17-27 from compat.py. Setup.cfg should enforce the python3 versions we support. https://github.com/carlkidcrypto/ezsnmp/blob/main/ezsnmp%2Fcompat.py As for In the meantime tests are failing for Python 3.8
|
let me fix it. |
another proposal. it will be a good choice to add a |
Thanks for the proposal. We will stick with Black for now. Black can be run too, just before you commit anything.
|
Some tests keep failing on MacOS Python 3.8 and 3.11.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
this is strange, assume it's not code error. as error says that it's timeout. this is the result I run test on linux:
|
- introduce some delay so we don't DDos our own test snmp server.
---------- coverage: platform darwin, python 3.9.6-final-0 -----------
Name Stmts Miss Cover Missing
----------------------------------------------------
ezsnmp/__init__.py 4 0 100%
ezsnmp/compat.py 6 0 100%
ezsnmp/exceptions.py 17 0 100%
ezsnmp/ez.py 47 0 100%
ezsnmp/helpers.py 9 0 100%
ezsnmp/session.py 170 8 95% 281, 284, 385, 433, 474, 506, 543, 577
ezsnmp/utils.py 27 1 96% 48
ezsnmp/variables.py 20 0 100%
----------------------------------------------------
TOTAL 300 9 97%
Results (33.58s):
311 passed ran tests on MacOS they pass as well, something must be up with the CI. |
add type annotation for high level API