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.
This commit is contained in:
Greg Price
2015-12-21 18:12:23 -08:00
parent f3b499fd99
commit 08d08fbabb
2 changed files with 3 additions and 3 deletions

View File

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

View File

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