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
1.py:7: error: Invalid index type "str" for "Union[Dict[str, str], str]"; expected type "Union[SupportsIndex, slice]" [index]
1.py:13: error: "str" not callable [operator]
Found 2 errors in 1 file (checked 1 source file)
Environment
Mypy version used: mypy 0.991 (compiled: no)
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files):
Python version used: Python 3.11.0
The text was updated successfully, but these errors were encountered:
After passing
isinstance(obj, dict)
successfully, obj is certainly of type dict.mypy gives warnings as if there was no check.
To Reproduce
Expected Behavior
There are no warnings.
Actual Behavior
Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: