Skip to content

Commit 3e09c1c

Browse files
GH1484 Update PR
1 parent 72e2d7d commit 3e09c1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas-stubs/core/series.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,6 @@ class _LocIndexerSeries(_LocIndexer, Generic[S1]):
337337
) -> None: ...
338338

339339
_DataLike: TypeAlias = ArrayLike | dict[str, np_ndarray] | SequenceNotStr[S1]
340-
_DataLikeS1: TypeAlias = (
341-
ArrayLike | dict[_str, np_ndarray] | Sequence[S1] | IndexOpsMixin[S1]
342-
)
343340

344341
class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
345342
# Define __index__ because mypy thinks Series follows protocol `SupportsIndex` https://github.com/pandas-dev/pandas-stubs/pull/1332#discussion_r2285648790
@@ -517,7 +514,10 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
517514
cls,
518515
data: (
519516
S1
520-
| _DataLikeS1[S1] # ty: ignore[invalid-type-arguments]
517+
| ArrayLike
518+
| dict[_str, np_ndarray]
519+
| Sequence[S1]
520+
| IndexOpsMixin[S1]
521521
| dict[HashableT1, S1]
522522
| KeysView[S1]
523523
| ValuesView[S1]

0 commit comments

Comments
 (0)