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 supported93 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
- Type narrowed to `Never` when using `TypeIs` with union of callables
- Make cache more agnostic to venvs
- mypy caching hysteresis
- false positive errors when calling operator override that returns `Never` from another function that returns `Never`
- `dmypy status` reports as "stuck" when it's busy checking files
- Stubs and use of `@deprecated` names
- Add support for literal addition
- Docs
- Python not yet supported