Make slice parameters positional-only (#6234)

This commit is contained in:
Alex Waygood
2021-11-04 14:29:15 +00:00
committed by GitHub
parent e2ee7c297d
commit 26f2c702d3

View File

@@ -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: ...