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
- variable annotated as `tuple[SomeProtocol, ...]` loses protocol information on assignment
- abstract class shouldn't be considered Callable
- Annotation parsing incorrect when class scope defines same name as import
- (🐞) false negative with `dataclass` "non-default argument follows default argument"
- Mypy incorrectly infers that parameters are positional-only for `__eq__` methods autogenerated with `@dataclass`
- Change final classes without __bool__ method to always be True
- Only allow splatting iterables if function takes at least one positional arg
- no error when value of type `type` (aka `type[Any]`) passed to function with generic with constraint, generic inferred as the first constraint
- Add support for PEP-610 editable packages (#12313)
- Type-checking generic of enum.Meta with a custom metaclass fails with code that runs, and passes with code that doesn't run.
- Docs
- Python not yet supported