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:11: error: Incompatible types (expression has type "None", TypedDict item "yaw" has type "float") [typeddict-item]
main.py:11: error: Incompatible types (expression has type "None", TypedDict item "pitch" has type "float") [typeddict-item]
main.py:11: error: Incompatible types (expression has type "None", TypedDict item "roll" has type "float") [typeddict-item]
Found 3 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: master and 1.1.1
Mypy command-line flags: nope
Mypy configuration options from mypy.ini (and other config files): nope
Python version used: 3.10, 3.11
The text was updated successfully, but these errors were encountered:
Bug Report
Type checking the code below causes
mypy
errors. In my opinion, everything assignable to typeT
should be still assignable to typeT | something
.To Reproduce
Playground with the following code:
Expected Behavior
No errors.
Actual Behavior
Your Environment
mypy.ini
(and other config files): nopeThe text was updated successfully, but these errors were encountered: