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
- (🐞) Strings as `TypeAlias`s are incorrectly assumed to be `type`s
- (🎁) Special case `NoReturn`, `Never`, `Self` and `TypeAlias` to not be subscriptable
- (🐞) An error should be reported when `reveal_type` is used but not called
- isinstance wrongly narrows away Any
- (🎁) `isinstance`/`issubclass` only accept `typing.Union`s of `type`s, not other type forms
- (🐞) `|` operator with `_SpecialForm` determined to be `types.UnionType` it's actually `typing.Union`
- Allow unsafe overrides in sub-subclasses that are compatible with subclass
- (🐞) Artificially literal bools not considered when performing reachability checks where branch terminates
- Error on instance property and init-only variable with the same name in a dataclass
- Errors not always reported for a file in incremental mode (reopening #4043)
- Docs
- Python not yet supported