aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-13 10:47:58 +0000
committerGravatar jesopo2019-11-13 10:47:58 +0000
commita1e9aabb847cec11476bc7686540eab10d46615f (patch)
tree6bc8f02a0381548ea9dbdf425489f4f12aaf99e4 /src/utils
parentonly set color_finished=True when is_background, otherwise next char sets it (diff)
signature
add typehinting for foreground/background
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc.py4
1 files 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]