-
Notifications
You must be signed in to change notification settings - Fork 231
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
Which static analysis tools use PEP 484 yet? #200
Comments
There's PyCharm, of course, which supports PEP 484 syntax (even the Python
2 variant, in PyCharm 5.1).
There's also this independent stub generator:
https://github.com/edreamleo/make-stub-files
I also found https://github.com/o11c/stubtool but I don't know if it's
still alive.
|
Don't ignore dynamic checking, which may help where static checking does not reach: https://pypi.python.org/pypi/typecheck-decorator Nice for instance for incremental sense-making when maintaining somebody else's code: find out something, annotate it, run tests, and see whether it is indeed usually true. Lutz |
How about the best dynamic checker of them all, Python itself? Cheers, |
There are plenty of cases where Python will silently Do The Wrong Thing due to type errors. One of the simple examples is if you end up calling |
Since someone already mentioned this, I could add another runtime type checking tool that I have seen: https://github.com/agronholm/typeguard |
Closing as this is no longer relevant |
I know of:
Which other static analysis tools have picked up PEP 484, and/or can do useful checking of (or anything else, with) annotated Python source?
The text was updated successfully, but these errors were encountered: