Note that the error only appears with --warn-unreachable.
Expected Behavior
Given that the reveal_type() shows that the type is Series[int], I would expect the subsequent isinstance() call to succeed.
Actual Behavior
main.py:20: note: Revealed type is "__main__.Series[builtins.int]"
main.py:21: error: Subclass of "Series[int]" and "TimestampSeries" cannot exist: would have inconsistent method resolution order [unreachable]
Found 1 error in 1 file (checked 1 source file)
Activity
Respect explicit return type of __new__() (python#21441)