From a1e9aabb847cec11476bc7686540eab10d46615f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 13 Nov 2019 10:47:58 +0000 Subject: [PATCH] add typehinting for foreground/background --- src/utils/irc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/irc.py b/src/utils/irc.py index 838d9d35..30a3126e 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -69,8 +69,8 @@ FORMAT_STRIP = [ ] def _format_tokens(s: str) -> typing.List[str]: is_color = False - foreground = [] - background = [] + foreground: typing.List[str] = [] + background: typing.List[str] = [] is_background = False matches = [] # type: typing.List[str]