Fix 'Optional[str]!=str' type hinting issue in utils.irc line parsing

This commit is contained in:
jesopo 2019-02-13 11:00:22 +00:00
parent acbe02baa6
commit 1136162057

View file

@ -115,7 +115,7 @@ def parse_line(line: str) -> IRCParsedLine:
args = line.split(" ")
if not arbitrary == None:
args.append(arbitrary)
args.append(typing.cast(str, arbitrary))
return IRCParsedLine(tags, prefix, command, IRCArgs(args), has_arbitrary)