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 supported105 Subscribers
View all SubscribersAdd a CodeTriage badge to mypy
Help out
- Issues
- (🐞) Inconsistent reachability depending if module level or not
- Decorator confused by keyword-only parameter with Union, erroneously expects `<nothing>`, but only in some cases?
- instance check with generic `type` causes narrowing to `<nothing>`
- Unexpected "incompatible type" error when chaining bytes(filter())
- Use union instead of join for unifying types
- Don't require annotations of kwargs initialized to bool, float, int or string constants
- (🐞) 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
- Docs
- Python not yet supported