From 096f3fb34b84bbfe7b0d41297f8ef834cf96a76b Mon Sep 17 00:00:00 2001 From: Dylan Jenkinson Date: Sun, 15 Jan 2017 10:28:26 +1300 Subject: [PATCH] Updated the stub for builtins to change slice to take Optional[int] rather than just straight int. --- stdlib/3/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 895ec09513e7..af9937e2a63b 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -472,7 +472,7 @@ class slice: start = 0 step = 0 stop = 0 - def __init__(self, start: int, stop: int = 0, step: int = 0) -> None: ... + def __init__(self, start: Optional[int], stop: Optional[int] = 0, step: Optional[int] = 0) -> None: ... class tuple(Sequence[_T_co], Generic[_T_co]): def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...