From b62579b0d28f2093295b3c0dd7f3b59f806263aa Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Mon, 21 Oct 2024 14:37:02 -0700 Subject: [PATCH] swap inheritance order for typing.Sequence (#12869) This matches the order at runtime. --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index ce16d9adf..4273a2363 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -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: ...