Skip to content

Commit 490c169

Browse files
committed
fix: #1207 resume the order of arguments
1 parent 4128829 commit 490c169

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas-stubs/core/series.pyi

+5-5
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
297297
def __new__(
298298
cls,
299299
data: _ListLike,
300-
dtype: TimestampDtypeArg,
301-
*,
302300
index: Axes | None = ...,
301+
*,
302+
dtype: TimestampDtypeArg,
303303
name: Hashable = ...,
304304
copy: bool = ...,
305305
) -> TimestampSeries: ...
@@ -342,12 +342,12 @@ class Series(IndexOpsMixin[S1], NDFrame):
342342
copy: bool = ...,
343343
) -> IntervalSeries[_OrderableT]: ...
344344
@overload
345-
def __new__(
345+
def __new__( # type: ignore[overload-overlap]
346346
cls,
347347
data: Scalar | _ListLike | dict[HashableT1, Any] | None,
348-
dtype: type[S1],
349-
*,
350348
index: Axes | None = ...,
349+
*,
350+
dtype: type[S1],
351351
name: Hashable = ...,
352352
copy: bool = ...,
353353
) -> Self: ...

0 commit comments

Comments
 (0)