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 supported89 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- Checking elements of a `list[str | None]` after discarding the possibility of `None`
- type inference is fragile for protocols like SupportsKeysAndGetItem
- Adverse interaction between `unreachable` code, `type: ignore[...]`, and `pass` or `...`
- Support frozen=TYPE_CHECKING for dataclasses
- mypy gets confused between non-re-exported import and a submodule of the same name
- (🎁) denote `type_visitor` as private (`_type_visitor`)
- mypyc: Any subclass of BytesIO will always generate an exception when instantiated
- Mypy rejects `cls.__repr__(obj)` when `cls: type[Any]`
- Caching bug with `--incremental --cache-dir` combination causes `AssertionError: Cannot find module`
- Requiring some errors to appear in all `finally`, `TypeVar` checks
- Docs
- Python not yet supported