Revert "Move Sized earlier in the bases of Sequence (#2602)" (#2657)

This reverts commit 4dc21f04dd.

Fixes #2655.
This commit is contained in:
Jukka Lehtosalo
2018-11-30 14:48:55 +00:00
committed by Ivan Levkivskyi
parent b4b81fba24
commit eaeb5fcf13

View File

@@ -144,7 +144,7 @@ class Container(Protocol[_T_co]):
@abstractmethod
def __contains__(self, x: object) -> bool: ...
class Sequence(Sized, Iterable[_T_co], Container[_T_co], Reversible[_T_co], Generic[_T_co]):
class Sequence(Iterable[_T_co], Container[_T_co], Sized, Reversible[_T_co], Generic[_T_co]):
@overload
@abstractmethod
def __getitem__(self, i: int) -> _T_co: ...