don't use [] (mutable) for func arg default values

This commit is contained in:
jesopo 2020-03-11 21:32:07 +00:00
parent 07da840925
commit 410ce64ae9
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ class Line(object):
typing.Optional[typing.Dict[str, typing.Optional[str]]]=None,
source: typing.Optional[str]=None,
command: str="",
params: typing.List[str]=[]):
params: typing.List[str]=None):
self.tags = tags
self.source = source
self.command = command
self.params = params
self.params = params or []
def __eq__(self, other) -> bool:
if isinstance(other, Line):