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

Fixes Good-First issue from Apr 25. Checks if incomplete defs are there and if there is, throws incomplete error statement.

### Bug Report When running strict mode on a simple example with numpy types, mypy will generate a confusing error message for `[assignment]` in which the expression type and the...

bug

Fixes [mypyc/mypyc#902](https://github.com/mypyc/mypyc/issues/902) This PR finds references of `typing.TYPE_CHECKING` or `typing_extensions.TYPE_CHECKING` and optimizes them to `False` in mypyc.

**Bug Report** I don't think that `TypeVar`s at class scope have any particular meaning, but if they reject `bound=T` they ought to also reject `bound=G[T]` in the same way. **To...

bug

**Crash Report** Mypy crashes when run on a python repo with `mypy .` **Traceback** ``` 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...

crash

**Feature** Generate an error if a type from the stdlib `numbers` module is used in an annotation. Use a dedicated error code so that the error can be easily enabled...

feature
needs discussion

Using mypy 0.782, I run `dmypy run .` on my codebase. The first time it runs, it correctly reports a few ``` error: unused 'type: ignore' comment ``` same as...

bug
topic-daemon
topic-type-ignore

There is currently a misbehaviour where "type: ignore" comments are erroneously marked as unused in re-runs of dmypy. There are also cases where errors disappear on the re-run. As far...

topic-daemon
topic-type-ignore
upnext

I have a custom class inheriting from `property`. When I go to use this as a decorator though mypy seems to miss that it's a property at all. This is...

bug
priority-1-normal
false-positive
topic-descriptors

**Bug Report** Prior to mypy 1.7, we were able to add decorators on top of properties by adding a `# type: ignore` comment. In 1.7.1, the decorated attribute now errors...

bug