mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Make slice parameters positional-only (#6234)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user