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
main.py:3: error: Incompatible types in assignment (expression has type "int | str | EllipsisType", variable has type "int | str") [assignment]
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: 1.9.0
Mypy command-line flags: --strict
Mypy configuration options from mypy.ini (and other config files): N/A
Python version used: 3.10.13 & 3.12 (in the playground)
The text was updated successfully, but these errors were encountered:
Bug Report
With v1.9.0,
...
no longer appears to be considered the only instance of theEllipsisType
and this causes type narrowing to not function properly.To Reproduce
https://mypy-play.net/?mypy=1.9.0&python=3.12&flags=strict&gist=02e73fd9b069629261e7328ab3530973
Expected Behavior
No errors, as it behaved on 1.8.0:
Actual Behavior
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: