stdlib: Add several missing comparison methods (#7202)

This commit is contained in:
Alex Waygood
2022-02-14 19:09:52 +00:00
committed by GitHub
parent f3ad0179f8
commit 66a229b709
5 changed files with 37 additions and 1 deletions

View File

@@ -55,6 +55,11 @@ class TimerHandle(Handle):
if sys.version_info >= (3, 7):
def when(self) -> float: ...
def __lt__(self, other: TimerHandle) -> bool: ...
def __le__(self, other: TimerHandle) -> bool: ...
def __gt__(self, other: TimerHandle) -> bool: ...
def __ge__(self, other: TimerHandle) -> bool: ...
class AbstractServer:
@abstractmethod
def close(self) -> None: ...