From 1d48f6f19d8fbc05d6828422b6012279c9351600 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 10 Feb 2019 23:52:25 +0000 Subject: [PATCH] Add _char_limit return type hint, fix decoded_data return type hint (src/IRCLine.py) --- src/IRCLine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IRCLine.py b/src/IRCLine.py index 360faa17..37b73f50 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -24,12 +24,12 @@ class Line(IRCObject.Object): def __str__(self) -> str: return self._data - def _char_limit(self): + def _char_limit(self) -> int: return LINE_CUTOFF-len(":%s " % self.server.hostmask()) def data(self) -> bytes: return b"%s\r\n" % self._data - def decoded_data(self) -> bytes: + def decoded_data(self) -> str: return self._data.decode("utf8") def truncated(self) -> str: return self._truncated