genunion.py:52: note: Revealed type is "Union[genunion.Series[Any], genunion.Index]"
genunion.py:54: note: Revealed type is "int"
pyright handles this correctly
Actual Behavior
genunion.py:52: note: Revealed type is "Union[genunion.IntSeries, genunion.IntIndex]"
genunion.py:54: note: Revealed type is "Union[genunion.Series[Any], builtins.int, genunion.Index]"
Your Environment
Mypy version used: 0.991
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Activity
Dr-Irv commented on Jan 3, 2025
Still an issue with mypy 1.14.1
Respect explicit return type of __new__() (python#21441)