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
{{ message }}
Repository navigation
Mypy complains about issues after cache is filled #11046
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
Activity
hauntsaninja commentedon Oct 31, 2021
Thanks for the report! I can repro
hauntsaninja commentedon Nov 30, 2025
This was fixed by #18847