mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
Make slice parameters positional-only (#6234)
This commit is contained in:
1 parent
e2ee7c297d
commit
26f2c702d3
1 file changed
+3
-3
+3
-3
@@ -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