mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Make last two slice() args optional in 2.7.
This commit is contained in:
@@ -438,7 +438,7 @@ class slice:
|
||||
start = 0
|
||||
step = 0
|
||||
stop = 0
|
||||
def __init__(self, start: int, stop: int, step: int) -> None: ...
|
||||
def __init__(self, start: int, stop: int = 0, step: int = 0) -> None: ...
|
||||
|
||||
class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user