mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user