Skip to content

Commit 707c988

Browse files
committed
copy TimeZones over
1 parent 21c6f6b commit 707c988

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ from typing import (
1717
overload,
1818
)
1919

20-
from _typing import TimeZones
2120
import numpy as np
2221
from pandas import (
2322
DatetimeIndex,
@@ -51,6 +50,8 @@ _Ambiguous: TypeAlias = bool | Literal["raise", "NaT"]
5150
_Nonexistent: TypeAlias = (
5251
Literal["raise", "NaT", "shift_backward", "shift_forward"] | Timedelta | timedelta
5352
)
53+
# Repeated from `_typing.pyi` so as to satisfy mixed strict / non-strict paths.
54+
TimeZones: TypeAlias = str | _tzinfo | None | int
5455

5556
class Timestamp(datetime, SupportsIndex):
5657
min: ClassVar[Timestamp] # pyright: ignore[reportIncompatibleVariableOverride]

0 commit comments

Comments
 (0)