We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9502d23 commit d740888Copy full SHA for d740888
pandas/_typing.py
@@ -6,6 +6,7 @@
6
tzinfo,
7
)
8
from os import PathLike
9
+import sys
10
from typing import (
11
TYPE_CHECKING,
12
Any,
@@ -83,8 +84,13 @@
83
84
# Name "npt._ArrayLikeInt_co" is not defined [name-defined]
85
NumpySorter = Optional[npt._ArrayLikeInt_co] # type: ignore[name-defined]
86
87
+ if sys.version_info >= (3, 11):
88
+ from typing import Self
89
+ else:
90
+ from typing_extensions import Self # pyright: reportUnusedImport = false
91
else:
92
npt: Any = None
93
+ Self: Any = None
94
95
HashableT = TypeVar("HashableT", bound=Hashable)
96
0 commit comments