You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running mypy 0.740 with check_untyped_defs = True gives a false positive mypy_bug.py:12: error: "Callable[[AbstractBase], Dict[Any, Any]]" has no attribute "values"
when running against the code below:
Mypy thinks that the value of cls.SOME_DICT on line 12 is Callable[[AbstractBase], Dict[Any, Any]], even though it is a property, typehinted to be dict.
The text was updated successfully, but these errors were encountered:
This code fails with a traceback (similar to what mypy says):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 8, in get_dict_values
AttributeError: 'property' object has no attribute 'values'
Running mypy 0.740 with
check_untyped_defs = True
gives a false positivemypy_bug.py:12: error: "Callable[[AbstractBase], Dict[Any, Any]]" has no attribute "values"
when running against the code below:
Mypy thinks that the value of
cls.SOME_DICT
on line 12 isCallable[[AbstractBase], Dict[Any, Any]]
, even though it is a property, typehinted to bedict
.The text was updated successfully, but these errors were encountered: