-
Notifications
You must be signed in to change notification settings - Fork 37
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
use type hints & mypy #50
Comments
👍 I actually tried to get this going a week or so a go. I struggled with the difference in types between py2 and py3. I think if we used the FYI we are using this in our local typeshed:
|
I have a typed version locally that was created with https://github.com/dropbox/pyannotate while running the tests. It gets us a lot of the way there. I should have some time in the next few weeks to come back to this, but if anyone else wants to try feel free. I do suggest the pyannotate approach. |
@jrideout Is this still something you would like to do? Otherwise I'd like to type annotate the project. Either way, thanks a lot for the hint about |
@jugmac00 Please go-ahead, I'm not actively working on the typing |
Currently, I have not much spare time, but I am looking forward to type this project - I will learn a lot, I guess :-) |
There's a lot of byte & string handling and so on that are easy to get wrong accidentally. Having some type hints and mypy checking them as part of tests would help catch errors & increase code quality.
The text was updated successfully, but these errors were encountered: