Closed
Description
Describe the bug
When multiplying two series with the @
operator, no type is inferred and the resulting type Unknown
will be assigned.
To Reproduce
from typing import reveal_type
import pandas as pd
s1 = pd.Series([0, 1, 2, 3])
s2 = pd.Series([-1, 2, -3, 4])
sc2 = s1 @ s2
reveal_type(sc2) ■ Type of "sc2" is "Unknown"
I believe it should return a Scalar at minimum, in some cases Series but it seems like the type hinting of @
is not in the stubs.
Please complete the following information:
- OS: MacOS
- OS Version 15.0.1
- python version 3.13
- version of type checker 1.13.0
- version of installed
pandas-stubs
2.2.3.241009