utils.irc.protocol.join()'s keys
param should be typing.Optional
This commit is contained in:
parent
cfdb48b3e7
commit
07cb14d98c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def ping(nonce: str="hello") -> 'utils.irc.IRCParsedLine':
|
|||
def pong(nonce: str="hello") -> 'utils.irc.IRCParsedLine':
|
||||
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':
|
||||
return utils.irc.IRCParsedLine("JOIN", [channel_name]+keys if keys else [])
|
||||
def part(channel_name: str, reason: str=None) -> 'utils.irc.IRCParsedLine':
|
||||
|
|
Loading…
Reference in a new issue