From 08d08fbabbc97de98ea954b4897c39a715a7ada6 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 21 Dec 2015 18:12:23 -0800 Subject: [PATCH] builtins: Reversible is redundant when Sequence is already present This has been true for a while with our Python 3 typing.pyi, and just became true with the Python 2 typing.pyi in the last commit. --- builtins/2.7/__builtin__.pyi | 2 +- builtins/3/builtins.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtins/2.7/__builtin__.pyi b/builtins/2.7/__builtin__.pyi index cbb94f998..12e36a12a 100644 --- a/builtins/2.7/__builtin__.pyi +++ b/builtins/2.7/__builtin__.pyi @@ -464,7 +464,7 @@ class function: __name__ = ... # type: str __module__ = ... # type: str -class list(MutableSequence[_T], Reversible[_T], Generic[_T]): +class list(MutableSequence[_T], Generic[_T]): @overload def __init__(self) -> None: ... @overload diff --git a/builtins/3/builtins.pyi b/builtins/3/builtins.pyi index c043eb170..91356e35d 100644 --- a/builtins/3/builtins.pyi +++ b/builtins/3/builtins.pyi @@ -438,7 +438,7 @@ class function: __module__ = ... # type: str __code__ = ... # type: Any -class list(MutableSequence[_T], Reversible[_T], Generic[_T]): +class list(MutableSequence[_T], Generic[_T]): @overload def __init__(self) -> None: ... @overload @@ -578,7 +578,7 @@ class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): def __next__(self) -> Tuple[int, _T]: ... # TODO __getattribute__ -class range(Sequence[int], Reversible[int]): +class range(Sequence[int]): @overload def __init__(self, stop: int) -> None: ... @overload