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
/tmp/as-class.py:10: error: Too few arguments for "b" of "A"
/tmp/as-class.py:10: error: Argument 1 to "b" of "A" has incompatible type "str"; expected "A"
If you comment out the @cached line, mypy gives the response:
Success: no issues found in 1 source file
The text was updated successfully, but these errors were encountered:
According to Guido van Rossum (python/typing#824), this should be a longstanding issue in mypy (python/mypy#10805). Until now, I did not find any workaround, but I will continue to work on it.
If anyone encounters this issue, I recommend using @bmc-msft's way to disable the cache before mypy checks and enable it afterwards.
Example source:
Using mypy for the above example gives the error:
If you comment out the
@cached
line, mypy gives the response:The text was updated successfully, but these errors were encountered: