utils.irc.protocol.join()'s keys param should be typing.Optional

This commit is contained in:
jesopo 2019-02-18 23:03:21 +00:00
parent cfdb48b3e7
commit 07cb14d98c

View file

@ -23,7 +23,7 @@ def ping(nonce: str="hello") -> 'utils.irc.IRCParsedLine':
def pong(nonce: str="hello") -> 'utils.irc.IRCParsedLine': def pong(nonce: str="hello") -> 'utils.irc.IRCParsedLine':
return utils.irc.IRCParsedLine("PONG", [nonce]) return utils.irc.IRCParsedLine("PONG", [nonce])
def join(channel_name: str, keys: typing.List[str] def join(channel_name: str, keys: typing.List[str]=None
) -> 'utils.irc.IRCParsedLine': ) -> 'utils.irc.IRCParsedLine':
return utils.irc.IRCParsedLine("JOIN", [channel_name]+keys if keys else []) return utils.irc.IRCParsedLine("JOIN", [channel_name]+keys if keys else [])
def part(channel_name: str, reason: str=None) -> 'utils.irc.IRCParsedLine': def part(channel_name: str, reason: str=None) -> 'utils.irc.IRCParsedLine':