Fix Reversible.__reversed__() return type. (I should do more testing.)

This commit is contained in:
Guido van Rossum
2016-01-11 16:04:44 -08:00
parent 1c02f14dc1
commit 8539624f05
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ class SupportsRound(Generic[_T]):
class Reversible(Generic[_T_co]):
@abstractmethod
def __reversed__(self) -> Iterator[_T]: ...
def __reversed__(self) -> Iterator[_T_co]: ...
class Sized(metaclass=ABCMeta):
@abstractmethod

View File

@@ -72,7 +72,7 @@ class SupportsRound(Generic[_T]):
class Reversible(Generic[_T_co]):
@abstractmethod
def __reversed__(self) -> Iterator[_T]: ...
def __reversed__(self) -> Iterator[_T_co]: ...
class Sized(metaclass=ABCMeta):
@abstractmethod