From 26f2c702d3819d664c02e68098ebd2a0eb370d4f Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 4 Nov 2021 14:29:15 +0000 Subject: [PATCH] Make slice parameters positional-only (#6234) --- stdlib/builtins.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index fc6d21bf9..8b4347d9e 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -705,11 +705,11 @@ class slice(object): step: Any stop: Any @overload - def __init__(self, stop: Any) -> None: ... + def __init__(self, __stop: Any) -> None: ... @overload - def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ... + def __init__(self, __start: Any, __stop: Any, __step: Any = ...) -> None: ... __hash__: None # type: ignore - def indices(self, len: SupportsIndex) -> tuple[int, int, int]: ... + def indices(self, __len: SupportsIndex) -> tuple[int, int, int]: ... class tuple(Sequence[_T_co], Generic[_T_co]): def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...