I have a simpel dot dict implementation. But if I change something in my code somewhere else, mypy complains with weird errors. My current workaround is, to delete the mypy cache before each run
x.py:2: error: Incompatible types in assignment (expression has type "Callable[[Dict[_KT, _VT], _KT, _VT], None]", base class "object" defined the type as "Callable[[object, str, Any], None]")
x.py:3: error: Incompatible types in assignment (expression has type "Callable[[Dict[_KT, _VT], _KT], None]", base class "object" defined the type as "Callable[[object, str], None]")
Expected Behavior
No error
Actual Behavior
Error; seems like a caching issue
Your Environment
Mypy version used: 0.910
Mypy command-line flags: nothing
Mypy configuration options from mypy.ini (and other config files): nothing
Bug Report
I have a simpel dot dict implementation. But if I change something in my code somewhere else, mypy complains with weird errors. My current workaround is, to delete the mypy cache before each run
To Reproduce
(Write your steps here:)
x.py
mypy x.py
--> works finea=2
to the end ofx.py
mypy x.py
--> errorExpected Behavior
No error
Actual Behavior
Error; seems like a caching issue
Your Environment
mypy.ini
(and other config files): nothing