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
- Disable comparison overlap checks in assert statements
- Opt-in error for `if x:` when `x: None | int` or `None | str` etc.
- Sketch implementation of "optional-non-truthy" check for `if x` with `x: None | str`
- Implement support for "mypy: ignore" comments
- Inconsistent "Incompatible return type" error when `List[int]` is returned for `List[Union[str, int]]` when layered up with Tuple/Union
- [Documentation] Minor change: Unify indexes in Variance of generic types description
- Fixes issue #17840 (shows signature of __call__ for incompatible function argument)
- overload with wrong return type is ignored
- Iteration over a Enum fails to typecheck if it's the Flag subclass
- False negative when lvalue has union type
- Docs
- Python not yet supported