Skip to content

Commit b62579b

Browse files
authored
swap inheritance order for typing.Sequence (#12869)
This matches the order at runtime.
1 parent 8b32739 commit b62579b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
575575
@abstractmethod
576576
def __len__(self) -> int: ...
577577

578-
class Sequence(Collection[_T_co], Reversible[_T_co]):
578+
class Sequence(Reversible[_T_co], Collection[_T_co]):
579579
@overload
580580
@abstractmethod
581581
def __getitem__(self, index: int) -> _T_co: ...

0 commit comments

Comments
 (0)