From ea924df88367f7b5bda1ed4696da23b00a4258a3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 7 Jun 2019 13:34:30 +0100 Subject: [PATCH] typehint for IRCBuffer._lines --- src/IRCBuffer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IRCBuffer.py b/src/IRCBuffer.py index dbfc9541..3dccb07b 100644 --- a/src/IRCBuffer.py +++ b/src/IRCBuffer.py @@ -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,