File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
pandas-stubs/core/indexes Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ from pandas.core.series import (
31
31
from typing_extensions import Self
32
32
33
33
from pandas ._typing import (
34
- AnyArrayLike ,
35
34
DateAndDatetimeLike ,
36
35
Dtype ,
37
36
IntervalClosedType ,
@@ -45,7 +44,7 @@ from pandas.tseries.offsets import BaseOffset
45
44
class DatetimeIndex (DatetimeTimedeltaMixin [Timestamp ], DatetimeIndexProperties ):
46
45
def __init__ (
47
46
self ,
48
- data : Axes | AnyArrayLike ,
47
+ data : Axes ,
49
48
freq : Frequency = ...,
50
49
tz : TimeZones = ...,
51
50
ambiguous : str = ...,
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ from pandas._libs import (
27
27
)
28
28
from pandas ._libs .tslibs import BaseOffset
29
29
from pandas ._typing import (
30
- AnyArrayLike ,
31
30
Axes ,
32
31
TimedeltaConvertibleTypes ,
33
32
num ,
@@ -36,11 +35,7 @@ from pandas._typing import (
36
35
class TimedeltaIndex (DatetimeTimedeltaMixin [Timedelta ], TimedeltaIndexProperties ):
37
36
def __new__ (
38
37
cls ,
39
- data : (
40
- AnyArrayLike
41
- | Sequence [dt .timedelta | Timedelta | np .timedelta64 | float ]
42
- | Axes
43
- ) = ...,
38
+ data : Sequence [dt .timedelta | Timedelta | np .timedelta64 | float ] | Axes = ...,
44
39
freq : str | BaseOffset = ...,
45
40
closed : object = ...,
46
41
dtype : Literal ["<m8[ns]" ] = ...,
You can’t perform that action at this time.
0 commit comments