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:28: error: Incompatible types in assignment (expression has type "O", variable has type "P") [assignment]
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: 1.6.0
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): non
Python version used: 3.11
The text was updated successfully, but these errors were encountered:
Bug Report
When descendents of a common base implement a shared protocol, a ternary returning either cannot be assigned to the protocol.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=8e6bdde0ef585f354461226647d2b66f
Expected Behavior
This should not produce errors.
Actual Behavior
Your Environment
mypy.ini
(and other config files): nonThe text was updated successfully, but these errors were encountered: