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 supported92 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- When specifying a TypeVar to be a Callable, or union of Callables, ParamSpec cannot be used to indicate parameter types
- False-positive "Overloaded function signatures overlap with incompatible return types"
- Misleading issue text when return type doesn't match type annotation
- False positive error "incompatible type" calling super() on a generic class with TypeVar constraints
- `possibly-undefined` rule should respect exhaustive checking
- (📚) Update comment in `Literal` example to explain why the redundant overload is needed
- Type narrowing for dict.get("key") is not None
- Allow a base class to restrict the type of subclass's inner class
- (🐞) `overload`s that exhaust finite `Literal`s(`bool`/`Enum`) not treated as exhaustive
- None is not a possible value for type variable bound to optional value?!
- Docs
- Python not yet supported