typehint for IRCBuffer._lines

This commit is contained in:
jesopo 2019-06-07 13:34:30 +01:00
parent bc4a6debb5
commit ea924df883

View file

@ -17,7 +17,8 @@ class Buffer(object):
def __init__(self, bot: "IRCBot.Bot", server: "IRCServer.Server"):
self.bot = bot
self.server = server
self._lines = collections.deque(maxlen=MAX_LINES)
self._lines = collections.deque(maxlen=MAX_LINES
) # type: typing.Deque[BufferLine]
self._skip_next = False
def _add_message(self, sender: str, message: str, action: bool, tags: dict,