mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 00:13:46 +08:00
swap inheritance order for typing.Sequence (#12869)
This matches the order at runtime.
This commit is contained in:
1 parent
8b32739f13
commit
b62579b0d2
1 file changed
+1
-1
+1
-1
@@ -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