mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Fix Reversible.__reversed__() return type. (I should do more testing.)
This commit is contained in:
1 parent
1c02f14dc1
commit
8539624f05
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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