1+ import numpy as np
12from pandas .core .indexes .extension import ExtensionIndex
23from pandas .core .indexes .timedeltas import TimedeltaIndex
34from typing_extensions import Self
45
56from pandas ._libs .tslibs import BaseOffset
67from pandas ._typing import (
78 S1 ,
9+ AxisIndex ,
810 TimeUnit ,
911)
1012
@@ -15,10 +17,18 @@ class DatetimeIndexOpsMixin(ExtensionIndex[S1]):
1517 def freqstr (self ) -> str | None : ...
1618 @property
1719 def is_all_dates (self ) -> bool : ...
18- def min (self , axis = ..., skipna : bool = ..., * args , ** kwargs ): ...
19- def argmin (self , axis = ..., skipna : bool = ..., * args , ** kwargs ): ...
20- def max (self , axis = ..., skipna : bool = ..., * args , ** kwargs ): ...
21- def argmax (self , axis = ..., skipna : bool = ..., * args , ** kwargs ): ...
20+ def min (
21+ self , axis : AxisIndex | None = ..., skipna : bool = ..., * args , ** kwargs
22+ ) -> S1 : ...
23+ def argmin (
24+ self , axis : AxisIndex | None = ..., skipna : bool = ..., * args , ** kwargs
25+ ) -> np .int64 : ...
26+ def max (
27+ self , axis : AxisIndex | None = ..., skipna : bool = ..., * args , ** kwargs
28+ ) -> S1 : ...
29+ def argmax (
30+ self , axis : AxisIndex | None = ..., skipna : bool = ..., * args , ** kwargs
31+ ) -> np .int64 : ...
2232 def __rsub__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
2333 self , other : DatetimeIndexOpsMixin
2434 ) -> TimedeltaIndex : ...
0 commit comments