File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ from pandas.core.api import (
5151from pandas .core .arrays import TimedeltaArray
5252from pandas .core .arrays .base import ExtensionArray
5353from pandas .core .arrays .categorical import CategoricalAccessor
54+ from pandas .core .arrays .datetimes import DatetimeArray
5455from pandas .core .arrays .interval import IntervalArray
5556from pandas .core .base import IndexOpsMixin
5657from pandas .core .frame import DataFrame
@@ -763,6 +764,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
763764 ) -> SeriesGroupBy [S1 , Any ]: ...
764765 def count (self ) -> int : ...
765766 def mode (self , dropna = ...) -> Series [S1 ]: ...
767+ @overload
768+ def unique (self : Series [Timestamp ]) -> DatetimeArray : ...
769+ @overload
766770 def unique (self ) -> np .ndarray : ...
767771 @overload
768772 def drop_duplicates (
@@ -2821,7 +2825,7 @@ class TimedeltaSeries(Series[Timedelta]):
28212825 ),
28222826 ) -> Series [float ]: ...
28232827 @overload
2824- def __rtruediv__ ( # type: ignore[override]
2828+ def __rtruediv__ (
28252829 self ,
28262830 other : (
28272831 timedelta
You can’t perform that action at this time.
0 commit comments