mypy
mypy copied to clipboard
Optional static typing for Python
**Bug Report** (A clear and concise description of what the bug is.) I receive the following error from mypy: `api/serializers.py:10: error: Incompatible types in assignment (expression has type "CharField", base...
**Bug Report** When instantiating a typeddict that was created as a class variable without any type hints and which has a not-required key, mypy thinks that all keys are required...
**Bug Report** / Discussion I want to write the code shown below where the types of the attributes are checked in a centralised consistent way to avoid duplication. However, this...
**Bug Report** Mypy does not sufficiently simplify `Union`s and `Literal`s before some type checks (the reproduction case uses `assert_type()`, but **assignments and calls will also trigger the issue**). The result...
Hey there! For context - I've tried asking the same question on typing Gitter and had no luck there since I believe the visibility is quite low and I got...
**Bug Report** We get an Any warning in 1.10: ``` aiojobs/aiohttp.py:50:5: error: Type of decorated function contains type "Any" ("_Wrapped[[_RequestView], Coroutine[object, object, _T], [_RequestView], Coroutine[Any, Any, _T]]") [misc] async def...
**Bug Report** `TypeVar` after overload cause mypy raise a warning about missing impl and redef (A clear and concise description of what the bug is.) **To Reproduce** ```python from typing...
**Bug Report** `mypy` v1.10.0 gives the following error, while it was working with v1.9.0: ``` test.py:13: error: Missing positional argument "self" in call to "__call__" of "_Wrapped" [call-arg] ``` **To...
**Crash Report** When I run mypy on my project, it crashes with the following messages: copi/types/model.py:124: error: INTERNAL ERROR -- Please try using mypy master on GitHub: https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build If this...
**Bug Report** When comparing a member of StrEnum to a string, it seems that Mypy assumes that the check is always False and does not type-check code under the condition....