Skip to content

Commit

Permalink
Make all params positional-only in slice.__new__ (#12900)
Browse files Browse the repository at this point in the history
positional only __new__
  • Loading branch information
randolf-scholz authored Oct 24, 2024
1 parent 65405e9 commit 1018323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,10 @@ class slice(Generic[_StartT, _StopT, _StepT]):
@property
def stop(self) -> _StopT: ...
@overload
def __new__(cls, stop: int | None) -> slice[int | MaybeNone, int | MaybeNone, int | MaybeNone]: ...
def __new__(cls, stop: int | None, /) -> slice[int | MaybeNone, int | MaybeNone, int | MaybeNone]: ...
@overload
def __new__(
cls, start: int | None, stop: int | None, step: int | None = None
cls, start: int | None, stop: int | None, step: int | None = None, /
) -> slice[int | MaybeNone, int | MaybeNone, int | MaybeNone]: ...
@overload
def __new__(cls, stop: _T2, /) -> slice[Any, _T2, Any]: ...
Expand Down

0 comments on commit 1018323

Please sign in to comment.