From 5001e47af97bf0d5cc3313c2e6bde4e2426c7d89 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 21 Nov 2018 20:17:02 +0000 Subject: [PATCH] typo in src/IRCServer.py, 'typing.float' -> 'float' --- src/IRCServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCServer.py b/src/IRCServer.py index b52783ba..016f69da 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -273,7 +273,7 @@ class Server(IRCObject.Object): def ping_due(self) -> bool: return self.until_next_ping() == 0 - def until_read_timeout(self) -> typing.float: + def until_read_timeout(self) -> float: return max(0, (self.last_read+READ_TIMEOUT_SECONDS )-time.monotonic()) def read_timed_out(self) -> bool: