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

String unpacking has been disallowed in https://github.com/python/mypy/issues/6406, where some comments ask for it to be allowed again. I'm opening an issue to track this better than comments in a closed...

bug

Sometimes an error code is not documented, which makes it harder for users to figure out why mypy geneated an error. Check if all error codes defined in `mypy.errorcodes` are...

documentation
good-first-issue

**Crash Report** Ran mypy with experimental features (Unpack, TypeVarTuple) **Traceback** ``` src/features/imputation.py:8: error: Skipping analyzing "missingpy": module is installed, but missing library stubs or py.typed marker [import] src/features/imputation.py:8: note: See...

crash
topic-pep-646

**Bug Report** When using `match` on a tuple, `mypy` is unable to apply type narrowing when a `case` clause specifies the type of the elements of the tuple. **To Reproduce**...

bug
topic-match-statement
topic-type-narrowing

hi, this is continuing from #14868, a user found another variant which points to something that likely needs to be adjusted in the fix just made in #15006. same test...

bug
topic-dataclass-transform

## Crash Report Just trying out dmypy for the first time and I encountered the below issue when trying to check an individual file after starting the daemon and checking...

crash
topic-daemon

- On module-level, now we'll skip remaining statements once unreachable. This brings the behavior in line with function-level behavior. - For module and function code, if `--warn-unreachable` is enabled, we'll...

topic-reachability

Make data tests more consistent by removing redundant `[out]`s (i.e. except for `[outN]`s since they also signify the number of steps), except in suites where they're required. In semanal tests...

Consider this code: ```python import typing class A: @property def f(self) -> int: return 1 @f.setter # Possible error for defining a setter that doesn't accept the type the @property...

feature
priority-0-high
false-positive
topic-descriptors

In the following code it would be useful to mark `toto` as final to make sure no code modifies it by error. However this triggers `Cannot override writable attribute "toto"...

bug
topic-inheritance
topic-final