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 supported98 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- (🐞) errors from imported modules aren't reported when project is installed
- mypy suggests `Iterator[Never]`, wants `Iterator[None]` as return type of contextmanager
- Calling `type[T]` returns the parent of `T` on Python 3.12+
- Enable --warn-unreachable in --strict in Mypy 2.0
- Spurious type error in `except` branch after an assignment from an `await` that throws
- [arg-type] "Argument has incompatible type" for TypeVar bound to Union passed to overloaded function
- Reconsider `--extra-checks`
- list comprehensions: mypy fails to derive the union type for lists but not for tuples
- Inferring parameter types and return type of a `type[T]`
- Function signature matching fails at import
- Docs
- Python not yet supported