File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ from datetime import (
5
5
from typing import (
6
6
Hashable ,
7
7
Literal ,
8
- Sequence ,
9
8
overload ,
10
9
)
11
10
@@ -28,7 +27,6 @@ from pandas._typing import (
28
27
AnyArrayLike ,
29
28
ArrayLike ,
30
29
DatetimeLike ,
31
- IntervalClosedType ,
32
30
)
33
31
34
32
from pandas .core .dtypes .dtypes import DatetimeTZDtype
Original file line number Diff line number Diff line change @@ -102,10 +102,8 @@ def to_datetime(
102
102
@overload
103
103
def to_datetime (
104
104
# TODO: Test other types
105
- arg : list [str ]
106
- | list [int ]
107
- | list [float ]
108
- | list [datetime ]
105
+ arg : Sequence [int | float | datetime ]
106
+ | list [str ]
109
107
| tuple [int | float | str | datetime , ...]
110
108
| npt .NDArray [np .datetime64 ]
111
109
| npt .NDArray [np .str_ ]
@@ -121,6 +119,7 @@ def to_datetime(
121
119
exact : bool = ...,
122
120
unit : str | None = ...,
123
121
infer_datetime_format : bool = ...,
122
+ # TODO: Origin needs int in pandas docs
124
123
origin : int | Literal ["julian" , "unix" ] | pd .Timestamp = ...,
125
124
cache : bool = ...,
126
125
) -> DatetimeIndex : ...
You can’t perform that action at this time.
0 commit comments