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
- A `class MyCallable(Protocol[T]): def __call__(self) -> T: ...` behaves differently, and worse, than a `Callable[[], T]` for the purposes of type inference.
- constrained TypeVar does not allow default of one of the constraint choices
- Fix `[func-returns-value]` not being trigged when calling decorated functions
- Make cache more agnostic to venvs
- false positive errors when calling operator override that returns `Never` from another function that returns `Never`
- Add support for literal addition
- Cannot set return type of asynccontextmanagers in Protocol classes
- Different error code when assigning the result of a function to an annotated field
- Provide an easy way to opt out of changes to default options
- Allow overriding config for folders (rather than modules)
- Docs
- Python not yet supported