-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type stubs? #9
Comments
Sorry for the late answer, I started last week but could not continue until today. I managed to add type hints (inside the type_hint branch for now) but still have some errors. I bypass them by adding The first error is due to some hack to support both Python 2 and 3:
It raises the error The second error happen when session headers are set:
mypy raise It is the first time I add type hints to a library so if you have ideas to better solve theses errors or have feedback to give, it is welcomed! |
Oh wow I'm late as heck, just saw the message :| Regarding the As for the last,
Hope this helps! |
Hello,
Is it possible to provide type hints for the API functions? Many people (myself included) work with static type checkers like mypy or pylance to make sure up to a point that no arbitrary conversions happen between data that haven't been accounted for.
Thanks in advance!
The text was updated successfully, but these errors were encountered: