mypy
https://github.com/python/mypy
Python
Optional static typing for Python
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported93 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- module name assumed is __main__ for .pyw files on windows
- torch-nn-functional-mypy-bug-when-torchvision-installed
- False positive when using `Self` as the return type with multiple base classes
- Mypy cannot guess callable return type (`Tuple[Type[T], ...] -> T`)
- `functools.reduce` over sets: empty set not accepted without annotation
- `functools.reduce` over sets becomes unacceptable when used in a larger expression
- assignment to `_` inside a function incorrectly becomes `Any`
- constrained TypeVar and star operator incompatible type
- `--untyped-calls-exclude` does not exclude some packages/libraries
- new generics should be inferred as covariant instead of invariant on frozen dataclasses
- Docs
- Python not yet supported