Make last two slice() args optional in 2.7.

This commit is contained in:
Guido van Rossum
2015-11-22 21:08:38 -08:00
parent 1f7b00e451
commit 7b75dec702

View File

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