@@ -38,8 +38,10 @@ from pandas.core.api import (
38
38
Int32Dtype as Int32Dtype ,
39
39
Int64Dtype as Int64Dtype ,
40
40
)
41
+ from pandas .core .arrays import TimedeltaArray
41
42
from pandas .core .arrays .base import ExtensionArray
42
43
from pandas .core .arrays .categorical import CategoricalAccessor
44
+ from pandas .core .arrays .datetimes import DatetimeArray
43
45
from pandas .core .arrays .interval import IntervalArray
44
46
from pandas .core .base import IndexOpsMixin
45
47
from pandas .core .frame import DataFrame
@@ -2113,6 +2115,7 @@ class TimestampSeries(Series[Timestamp]):
2113
2115
) -> TimestampSeries : ...
2114
2116
def __mul__ (self , other : float | Series [int ] | Series [float ] | Sequence [float ]) -> TimestampSeries : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2115
2117
def __truediv__ (self , other : float | Series [int ] | Series [float ] | Sequence [float ]) -> TimestampSeries : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2118
+ def unique (self ) -> DatetimeArray : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2116
2119
def mean ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2117
2120
self ,
2118
2121
axis : AxisIndex | None = ...,
@@ -2156,6 +2159,7 @@ class TimedeltaSeries(Series[Timedelta]):
2156
2159
def __mul__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2157
2160
self , other : num | Sequence [num ] | Series [int ] | Series [float ]
2158
2161
) -> TimedeltaSeries : ...
2162
+ def unique (self ) -> TimedeltaArray : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2159
2163
def __sub__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2160
2164
self ,
2161
2165
other : (
0 commit comments