mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
swap inheritance order for typing.Sequence (#12869)
This matches the order at runtime.
This commit is contained in:
@@ -575,7 +575,7 @@ class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
|
||||
@abstractmethod
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
class Sequence(Collection[_T_co], Reversible[_T_co]):
|
||||
class Sequence(Reversible[_T_co], Collection[_T_co]):
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __getitem__(self, index: int) -> _T_co: ...
|
||||
|
||||
Reference in New Issue
Block a user