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 supported94 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- False-positive typecheck with StrEnum
- fix misleading error message: MyPy should not suggest a syntactic error when function calls are included in type annotations
- erroneous type mismatch with `Union` and `Literal` (false positive)
- Make type refinement to work with `None in [a, b, c]`
- Incompatible return value type when using typevar with bound and self returning method
- Add check for comparisons like `None in list/set/tuple`
- Incompatible return value type `type[Enum]` when returning a functional-style Enum
- Type refinement does not work with `None in [a, b, c]`, `any()`, or `all()` checks
- false error with simple nested structure
- `TypeGuard` has no effect when nested in the presence of other problems
- Docs
- Python not yet supported