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
{{ message }}
Repository navigation
Inconsistent MRO error when __new__ returns a subclass and --warn-unreachable is turned on #13824
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)