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
error: Incompatible types in assignment (expression has type "int", variable has type "Number")
This is unexpected. There shouldn't be an error because Number>int or in other words isinstance(0, Number) is True.
Instead, there should be no error.
I can't tell if this is a bug in mypy, but I think it rather is a typing problem.
Python Version 3.10.1
OS: Windows 10 (Although, I think this shouldn't make a difference)
The text was updated successfully, but these errors were encountered:
I tried to hold the code as minimal as possible
If we run mypy over this:
This is unexpected. There shouldn't be an error because
Number>int
or in other wordsisinstance(0, Number) is True
.Instead, there should be no error.
I can't tell if this is a bug in mypy, but I think it rather is a typing problem.
Python Version 3.10.1
OS: Windows 10 (Although, I think this shouldn't make a difference)
The text was updated successfully, but these errors were encountered: