From f0dee5ebd6f80b647bdf12194ced06b820ba950d Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 May 2019 15:30:15 +0100 Subject: [PATCH] Immutable arg default values leads to weird data persistence --- src/IRCLine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCLine.py b/src/IRCLine.py index d388b463..538c0a5e 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -40,7 +40,7 @@ class Hostmask(object): class ParsedLine(object): def __init__(self, command: str, args: typing.List[str], prefix: Hostmask=None, - tags: typing.Dict[str, str]={}): + tags: typing.Dict[str, str]=None): self.command = command self._args = args self.args = IRCArgs(args)