add typehinting for foreground/background

This commit is contained in:
jesopo 2019-11-13 10:47:58 +00:00
parent 5d2dd9178f
commit a1e9aabb84

View file

@ -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]