Skip to content

Commit 234fa44

Browse files
committed
Small fixes
1 parent 539c842 commit 234fa44

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pandas-stubs/core/indexes/datetimes.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ from datetime import (
55
from typing import (
66
Hashable,
77
Literal,
8-
Sequence,
98
overload,
109
)
1110

@@ -28,7 +27,6 @@ from pandas._typing import (
2827
AnyArrayLike,
2928
ArrayLike,
3029
DatetimeLike,
31-
IntervalClosedType,
3230
)
3331

3432
from pandas.core.dtypes.dtypes import DatetimeTZDtype

pandas-stubs/core/tools/datetimes.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ def to_datetime(
102102
@overload
103103
def to_datetime(
104104
# 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]
109107
| tuple[int | float | str | datetime, ...]
110108
| npt.NDArray[np.datetime64]
111109
| npt.NDArray[np.str_]
@@ -121,6 +119,7 @@ def to_datetime(
121119
exact: bool = ...,
122120
unit: str | None = ...,
123121
infer_datetime_format: bool = ...,
122+
# TODO: Origin needs int in pandas docs
124123
origin: int | Literal["julian", "unix"] | pd.Timestamp = ...,
125124
cache: bool = ...,
126125
) -> DatetimeIndex: ...

0 commit comments

Comments
 (0)