1
+ import numpy as np
1
2
from pandas .core .indexes .extension import ExtensionIndex
2
3
from pandas .core .indexes .timedeltas import TimedeltaIndex
3
4
from typing_extensions import Self
4
5
5
6
from pandas ._libs .tslibs import BaseOffset
6
7
from pandas ._typing import (
7
8
S1 ,
9
+ AxisIndex ,
8
10
TimeUnit ,
9
11
)
10
12
@@ -15,10 +17,18 @@ class DatetimeIndexOpsMixin(ExtensionIndex[S1]):
15
17
def freqstr (self ) -> str | None : ...
16
18
@property
17
19
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 : ...
22
32
def __rsub__ ( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
23
33
self , other : DatetimeIndexOpsMixin
24
34
) -> TimedeltaIndex : ...
0 commit comments