mypy
mypy copied to clipboard
Optional static typing for Python
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...
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...
**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...
**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**...
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...
## 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...
- 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...
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...
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"...