Fix 'Optional[str]!=str' type hinting issue in utils.irc line parsing
This commit is contained in:
parent
acbe02baa6
commit
1136162057
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ def parse_line(line: str) -> IRCParsedLine:
|
||||||
args = line.split(" ")
|
args = line.split(" ")
|
||||||
|
|
||||||
if not arbitrary == None:
|
if not arbitrary == None:
|
||||||
args.append(arbitrary)
|
args.append(typing.cast(str, arbitrary))
|
||||||
|
|
||||||
return IRCParsedLine(tags, prefix, command, IRCArgs(args), has_arbitrary)
|
return IRCParsedLine(tags, prefix, command, IRCArgs(args), has_arbitrary)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue