mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Optional static typing for Python

Results 1055 mypy issues
Sort by recently updated
recently updated
newest added

* Fix handling of nested imports. Instead of assuming that a name is imported from a top level package, look in the imports for this name starting from the parent...

I'm working to set up `dmypy` in a multi-root workspace where we'll need to run multiple instances of `dmypy` for various subsets of files. We're hoping to do something like...

documentation

**Crash Report** MyPy crashes when trying to validate a code bit enumerating a `List[Tuple[MyType, MyType]]` where `MyType` is a `@dataclass` decorated `Protocol` (see example code below). **Traceback** (Paths redacted) ```...

crash
topic-protocols
topic-dataclasses

Fixes #13238 See also https://github.com/python/typeshed/issues/8988 cc @AlexWaygood @JelleZijlstra

### Description Resolves #10816 The changes this PR makes are relatively small. It currently: - Adds an `--output` option to mypy CLI - Adds a `ErrorFormatter` abstract base class, which...

upnext

**Feature** (A clear and concise description of your feature proposal.) mypy supports a `-c` flag to pass in code to check by string. dmypy is missing this feature. This would...

feature
topic-daemon

**Feature** It would be useful to allow the user to define a custom TPC host:port pair and have the client communicate with a remote mypy server listening to that address....

feature
topic-daemon

When doing a `sys.platform` check, mypy seems to only recognise this when the check is done directly in the `if` statement, but not when the check is assigned to a...

feature

There was a bit of a gap as to which part are the input and where the return type is. (Explain how this PR changes mypy.)

PEP 692 has been accepted and issue #4441 is fixed - added an entry to the cheatsheet mentioning a new way of annotating `**kwargs` in a function signature.