mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
Make Reversible covariant. Fixes #19. (Though it does not seem to be *necessary*.)
This commit is contained in:
1 parent
0673b7bab9
commit
1c02f14dc1
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ class SupportsRound(Generic[_T]):
|
||||
@abstractmethod
|
||||
def __round__(self, ndigits: int = ...) -> _T: ...
|
||||
|
||||
class Reversible(Generic[_T]):
|
||||
class Reversible(Generic[_T_co]):
|
||||
@abstractmethod
|
||||
def __reversed__(self) -> Iterator[_T]: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user