mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix Reversible.__reversed__() return type. (I should do more testing.)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user