Skip to content

Commit 4796e52

Browse files
josh-friedlander-kandoluckyvs1
authored andcommitted
TYP: Extend typing to allow passing Index to to_datetime (pandas-dev#38634)
1 parent e50455f commit 4796e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/tools/datetimes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
guess_datetime_format,
3333
)
3434
from pandas._libs.tslibs.strptime import array_strptime
35-
from pandas._typing import ArrayLike, Label, Timezone
35+
from pandas._typing import AnyArrayLike, ArrayLike, Label, Timezone
3636

3737
from pandas.core.dtypes.common import (
3838
ensure_object,
@@ -68,7 +68,7 @@
6868
# ---------------------------------------------------------------------
6969
# types used in annotations
7070

71-
ArrayConvertible = Union[List, Tuple, ArrayLike, "Series"]
71+
ArrayConvertible = Union[List, Tuple, AnyArrayLike, "Series"]
7272
Scalar = Union[int, float, str]
7373
DatetimeScalar = TypeVar("DatetimeScalar", Scalar, datetime)
7474
DatetimeScalarOrArrayConvertible = Union[DatetimeScalar, ArrayConvertible]

0 commit comments

Comments
 (0)