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
mypy_type_error.py:12: error: Argument 1 to "fun" has incompatible type "dict[int, str]"; expected "Mapping[str, int | None] | Mapping[int | None, str]" [arg-type]
That is, MyPy takes issue with the parameters in the third function call. The last call including the None key does not produce an error, though. I'd expect the third call to not show an error, either.
The text was updated successfully, but these errors were encountered:
I get an
arg-type
error in MyPy 1.14.1 on the following code using a Union of invertedcollections.abc.Mapping
:The error is:
That is, MyPy takes issue with the parameters in the third function call. The last call including the
None
key does not produce an error, though. I'd expect the third call to not show an error, either.The text was updated successfully, but these errors were encountered: