Immutable arg default values leads to weird data persistence

This commit is contained in:
jesopo 2019-05-30 15:30:15 +01:00
parent 34f9ee3c9c
commit f0dee5ebd6

View file

@ -40,7 +40,7 @@ class Hostmask(object):
class ParsedLine(object): class ParsedLine(object):
def __init__(self, command: str, args: typing.List[str], def __init__(self, command: str, args: typing.List[str],
prefix: Hostmask=None, prefix: Hostmask=None,
tags: typing.Dict[str, str]={}): tags: typing.Dict[str, str]=None):
self.command = command self.command = command
self._args = args self._args = args
self.args = IRCArgs(args) self.args = IRCArgs(args)