Skip to content

Commit

Permalink
swap inheritance order for typing.Sequence (#12869)
Browse files Browse the repository at this point in the history
This matches the order at runtime.
  • Loading branch information
tungol authored Oct 21, 2024
1 parent 8b32739 commit b62579b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit b62579b

Please sign in to comment.