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 --strict optional_local_default.py
optional_local_default.py:8: error: Item "None" of "Optional[Dict[str, str]]" has no attribute "update"
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: 0.910
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files): strict
Python version used: 3.9
Operating system and version: arch
The text was updated successfully, but these errors were encountered:
The example is self explicit.
It looks weird that we need to check for
final_params is None
when we just set it explicitly to something else.Expected Behavior
No mypy error
Actual Behavior
Your Environment
mypy.ini
(and other config files): strictThe text was updated successfully, but these errors were encountered: