Add _char_limit return type hint, fix decoded_data return type hint
(src/IRCLine.py)
This commit is contained in:
parent
ecb197858e
commit
1d48f6f19d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue