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

**Feature** The possibility to allow custom type checking for function definitions using plugins would be very helpful to e.g. restrict allowed return types of a function. At the moment the...

feature
topic-plugins

**Crash Report** Mypy crashes when run over a match statement. **Traceback** ``` a05.py:10: error: INTERNAL ERROR -- Please try using mypy master on GitHub: https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build Please report a bug at...

crash
topic-literal-types
topic-match-statement

**Feature** Currently, TypedDict must be declared and used as so: ``` MyDict = TypedDict('MyDict', {'foo': int, 'bar': bool}) def fn() -> MyDict: pass ``` In many situations, the type doesn't...

feature
topic-depends-on-pep-change
topic-typed-dict

It would be great if there were a way to inherit the (argument) type signatures from one function to another. The use case here is something like: ``` python def...

feature

It is already possible to silence errors using `# type: ignore` on individual lines, and - since #626) also for a whole file. Additionally it would be nice to ignore...

feature
topic-type-ignore

Union return types get suggested pretty often, but they usually are not the right thing for library stubs.

documentation
priority-1-normal
topic-union-types
good-first-issue

I know this sounds ridiculous, but I'm not sure how else to explain it. In the middle of a large refactor of code, which can be found here in its...

bug

We have >1800 open issues, so it's easy to lose sight of ways we could make mypy better. Here's my summary of things I'd like to see. Related to https://github.com/python/mypy/issues/6740,...

feature
meta

**Bug Report** If a program references a variable and then declares it global or nonlocal, mypy does not catch this. **To Reproduce** ```py foo.py: x = 'x' from typing import...

feature
topic-variable-scope

**Bug Report** When using `namespace_packages = true`, if it happens that a directory with the same name as a module exists, `mypy` will not recognize names from the module. **To...

bug