diff options
| author | 2019-11-13 10:47:58 +0000 | |
|---|---|---|
| committer | 2019-11-13 10:47:58 +0000 | |
| commit | a1e9aabb847cec11476bc7686540eab10d46615f (patch) | |
| tree | 6bc8f02a0381548ea9dbdf425489f4f12aaf99e4 | |
| parent | only set color_finished=True when is_background, otherwise next char sets it (diff) | |
| signature | ||
add typehinting for foreground/background
| -rw-r--r-- | src/utils/irc.py | 4 |
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] |
