@@ -124,14 +124,14 @@ class _LocIndexerSeries(_LocIndexer, Generic[S1]):
124
124
idx : MaskType
125
125
| Index
126
126
| Sequence [float ]
127
- | list [_str ]
127
+ | list [str ]
128
128
| slice
129
129
| tuple [str | float | slice | Index , ...],
130
130
) -> Series [S1 ]: ...
131
131
@overload
132
132
def __getitem__ (
133
133
self ,
134
- idx : _str | float ,
134
+ idx : str | float ,
135
135
) -> S1 : ...
136
136
@overload
137
137
def __setitem__ (
@@ -161,7 +161,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
161
161
def __new__ (
162
162
cls ,
163
163
data : DatetimeIndex ,
164
- index : _str | int | Series | list | Index | None = ...,
164
+ index : Axes | None = ...,
165
165
dtype = ...,
166
166
name : Hashable | None = ...,
167
167
copy : bool = ...,
@@ -171,7 +171,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
171
171
def __new__ (
172
172
cls ,
173
173
data : PeriodIndex ,
174
- index : _str | int | Series | list | Index | None = ...,
174
+ index : Axes | None = ...,
175
175
dtype = ...,
176
176
name : Hashable | None = ...,
177
177
copy : bool = ...,
@@ -182,7 +182,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
182
182
cls ,
183
183
data : object | _ListLike | Series [S1 ] | dict [int , S1 ] | dict [_str , S1 ] | None ,
184
184
dtype : type [S1 ],
185
- index : _str | int | Series | list | Index | None = ...,
185
+ index : Axes | None = ...,
186
186
name : Hashable | None = ...,
187
187
copy : bool = ...,
188
188
fastpath : bool = ...,
@@ -196,7 +196,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
196
196
| dict [int , S1 ]
197
197
| dict [_str , S1 ]
198
198
| None = ...,
199
- index : _str | int | Series | list | Index | None = ...,
199
+ index : Axes | None = ...,
200
200
dtype = ...,
201
201
name : Hashable | None = ...,
202
202
copy : bool = ...,
0 commit comments