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
- (🐞) error code that is enabled in the config file can't be disabled on the CLI (with `--disable-error-code`)
- Add "is invariant" warning to Set as well as List for situations where a Collection should be used
- bound type-var error is undetected inside return statement
- variance okay for literals, but not expressions ([1, 2] okay for list[int | None] but [1] + [2] is error)
- Mypy does not detect automatic init generation for fieldless dataclass inheriting from abstract base
- False positive for class patterns when `Callable` is used
- Overloading of descriptor's __get__ doesn't work when the differentiator is type of self
- (🐞) TypeGuard behaves inconsistently on instance methods.
- Unexpected incompatible types in assignment (Failed in recursive type checking, nested protocol with generic type)
- Replace implicit reexport with explicit
- Docs
- Python not yet supported