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 supported88 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy![CodeTriage badge for python/mypy](/python/mypy/badges/users.svg?count=88)
Help out
- Issues
- Can't narrow `Sequence[<X>]` to `Tuple[<X>, ...]` using `isinstance(..., tuple)`
- Typing Error for Default Lambda Arg when using Generics
- mypy incorrectly tags function argument TypeVar with return type when called from a caller with the same signature
- unused-courotine should trigger when using a coroutine call as a condition without awaiting it
- `assert_never` fails on match-casing `enum` with only one member
- 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)`
- Docs
- Python not yet supported