From da6d4314d3b483a0ace37bded34a9a3b6d6ce1bb Mon Sep 17 00:00:00 2001 From: Tadeu Manoel Date: Thu, 16 Mar 2017 10:14:34 -0300 Subject: [PATCH] Add missing method 'indices' in 'slice' builtin (#1007) --- stdlib/2/__builtin__.pyi | 1 + stdlib/3/builtins.pyi | 1 + 2 files changed, 2 insertions(+) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 04570eef6..6e3086e4c 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -476,6 +476,7 @@ class slice(object): def __init__(self, stop: Optional[int]) -> None: ... @overload def __init__(self, start: Optional[int], stop: Optional[int], step: int = None) -> None: ... + def indices(self, len: int) -> Tuple[int, int, int]: ... class tuple(Sequence[_T_co], Generic[_T_co]): def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 178d6bfa6..835119a81 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -525,6 +525,7 @@ class slice: def __init__(self, stop: Optional[int]) -> None: ... @overload def __init__(self, start: Optional[int], stop: Optional[int], step: int = None) -> None: ... + def indices(self, len: int) -> Tuple[int, int, int]: ... class tuple(Sequence[_T_co], Generic[_T_co]): def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...