File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ from typing import (
13
13
Any ,
14
14
ClassVar ,
15
15
Literal ,
16
- TypeVar ,
17
16
overload ,
18
17
)
19
18
@@ -115,6 +114,7 @@ from pandas._typing import (
115
114
StorageOptions ,
116
115
StrLike ,
117
116
Suffixes ,
117
+ T as _T ,
118
118
TimestampConvention ,
119
119
ValidationOptions ,
120
120
WriteBuffer ,
@@ -129,8 +129,6 @@ from pandas.plotting import PlotAccessor
129
129
_str = str
130
130
_bool = bool
131
131
132
- _T = TypeVar ("_T" )
133
-
134
132
class _iLocIndexerFrame (_iLocIndexer ):
135
133
@overload
136
134
def __getitem__ (self , idx : tuple [int , int ]) -> Scalar : ...
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ from typing import (
18
18
ClassVar ,
19
19
Generic ,
20
20
Literal ,
21
- TypeVar ,
22
21
overload ,
23
22
)
24
23
@@ -142,6 +141,7 @@ from pandas._typing import (
142
141
SortKind ,
143
142
StrDtypeArg ,
144
143
StrLike ,
144
+ T ,
145
145
TimedeltaDtypeArg ,
146
146
TimestampConvention ,
147
147
TimestampDtypeArg ,
@@ -161,8 +161,6 @@ from pandas.plotting import PlotAccessor
161
161
_bool = bool
162
162
_str = str
163
163
164
- _T = TypeVar ("_T" )
165
-
166
164
class _iLocIndexerSeries (_iLocIndexer , Generic [S1 ]):
167
165
# get item
168
166
@overload
@@ -389,7 +387,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
389
387
@overload
390
388
def get (self , key : Hashable , default : S1 ) -> S1 : ...
391
389
@overload
392
- def get (self , key : Hashable , default : _T ) -> S1 | _T : ...
390
+ def get (self , key : Hashable , default : T ) -> S1 | T : ...
393
391
def repeat (
394
392
self , repeats : int | list [int ], axis : AxisIndex | None = ...
395
393
) -> Series [S1 ]: ...
You can’t perform that action at this time.
0 commit comments