Skip to content

Commit ba674e4

Browse files
committed
move Timezones into timestamps.pyi
1 parent c569149 commit ba674e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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,7 @@ from typing import (
1717
overload,
1818
)
1919

20-
from _typing import TimeZones
20+
# from _typing import TimeZones
2121
import numpy as np
2222
from pandas import (
2323
DatetimeIndex,
@@ -51,6 +51,7 @@ _Ambiguous: TypeAlias = bool | Literal["raise", "NaT"]
5151
_Nonexistent: TypeAlias = (
5252
Literal["raise", "NaT", "shift_backward", "shift_forward"] | Timedelta | timedelta
5353
)
54+
TimeZones: TypeAlias = str | _tzinfo | None | int
5455

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mypy = "1.15.0"
3939
pandas = "2.2.3"
4040
pyarrow = ">=10.0.1"
4141
pytest = ">=7.1.2"
42-
pyright = "1.1.394"
42+
pyright = ">=1.1.396"
4343
poethepoet = ">=0.16.5"
4444
loguru = ">=0.6.0"
4545
typing-extensions = ">=4.12.2"

0 commit comments

Comments
 (0)