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
- Disallow type(x) if x has a protocol type
- Invalid JUnit XML being generated due to <type> hint
- Maybe add semantical understanding of `assert not TYPE_CHECKING` (similar to `if not TYPE_CHECKING`)?
- (🐞) `Protocol`s that narrow to modules become `Any`
- Cannot use `match case` to destructure any object using `case object(x=y)`
- (🐞) Incorrect analysis of `while` loop subject
- `next(iter(<Tuple[...]>))` should be a `Union` of the `Tuple` element types, rather than their most descended common ancestor
- MyPy doesn't understand types-boto 2.49.18.20240205 correctly and fails previously-working code
- "lax_numpy.float64" is not a valid type in python3.8
- Request: opt-in rule preventing duplicate error codes
- Docs
- Python not yet supported