File tree Expand file tree Collapse file tree 7 files changed +5
-25
lines changed Expand file tree Collapse file tree 7 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -122,5 +122,4 @@ dependencies:
122
122
- pip :
123
123
- adbc-driver-postgresql>=0.10.0
124
124
- adbc-driver-sqlite>=0.8.0
125
- - typing_extensions; python_version<"3.11"
126
125
- tzdata>=2023.3
Original file line number Diff line number Diff line change 1
1
from enum import Enum
2
-
3
- from pandas ._typing import Self
2
+ from typing import Self
4
3
5
4
OFFSET_TO_PERIOD_FREQSTR : dict [str , str ]
6
5
Original file line number Diff line number Diff line change 16
16
tzinfo ,
17
17
)
18
18
from os import PathLike
19
- import sys
20
19
from typing import (
21
20
TYPE_CHECKING ,
22
21
Any ,
93
92
from typing import TypeGuard # pyright: ignore[reportUnusedImport]
94
93
95
94
P = ParamSpec ("P" )
96
-
97
- if sys .version_info >= (3 , 11 ):
98
- from typing import Self # pyright: ignore[reportUnusedImport]
99
- from typing import Unpack # pyright: ignore[reportUnusedImport]
100
- else :
101
- from typing_extensions import Self # pyright: ignore[reportUnusedImport]
102
- from typing_extensions import Unpack # pyright: ignore[reportUnusedImport]
103
-
104
95
else :
105
96
ParamSpec : Any = None
106
- Self : Any = None
107
97
TypeGuard : Any = None
108
98
Concatenate : Any = None
109
- Unpack : Any = None
110
99
111
100
HashableT = TypeVar ("HashableT" , bound = Hashable )
112
101
HashableT2 = TypeVar ("HashableT2" , bound = Hashable )
Original file line number Diff line number Diff line change 12
12
13
13
from contextlib import contextmanager
14
14
import operator
15
- from typing import TYPE_CHECKING
15
+ from typing import Self
16
16
17
17
import numba
18
18
from numba import types
41
41
from pandas .core .internals import SingleBlockManager
42
42
from pandas .core .series import Series
43
43
44
- if TYPE_CHECKING :
45
- from pandas ._typing import Self
46
-
47
44
48
45
# Helper function to hack around fact that Index casts numpy string dtype to object
49
46
#
Original file line number Diff line number Diff line change 10
10
from __future__ import annotations
11
11
12
12
from typing import (
13
- TYPE_CHECKING ,
14
13
NoReturn ,
14
+ Self ,
15
15
)
16
16
17
17
from pandas .core .base import PandasObject
18
18
19
19
from pandas .io .formats .printing import pprint_thing
20
20
21
- if TYPE_CHECKING :
22
- from pandas ._typing import Self
23
-
24
21
25
22
class FrozenList (PandasObject , list ):
26
23
"""
Original file line number Diff line number Diff line change 19
19
Any ,
20
20
Generic ,
21
21
Literal ,
22
+ Self ,
22
23
TypedDict ,
24
+ Unpack ,
23
25
overload ,
24
26
)
25
27
import warnings
89
91
HashableT ,
90
92
IndexLabel ,
91
93
ReadCsvBuffer ,
92
- Self ,
93
94
StorageOptions ,
94
- Unpack ,
95
95
UsecolsArgType ,
96
96
)
97
97
Original file line number Diff line number Diff line change @@ -85,5 +85,4 @@ jupyterlite-core
85
85
jupyterlite-pyodide-kernel
86
86
adbc-driver-postgresql >= 0.10.0
87
87
adbc-driver-sqlite >= 0.8.0
88
- typing_extensions ; python_version < "3.11"
89
88
tzdata >= 2023.3
You can’t perform that action at this time.
0 commit comments