Skip to content
Snippets Groups Projects
Unverified Commit 28c6ce97 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by GitHub
Browse files

SpecList: remove mutable types from __init__ arguments (#18515)

fixes #18439
parent dcee0a1d
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,11 @@ def spec_ordering_key(s): ...@@ -25,7 +25,11 @@ def spec_ordering_key(s):
class SpecList(object): class SpecList(object):
def __init__(self, name='specs', yaml_list=[], reference={}): def __init__(self, name='specs', yaml_list=None, reference=None):
# Normalize input arguments
yaml_list = yaml_list or []
reference = reference or {}
self.name = name self.name = name
self._reference = reference # TODO: Do we need defensive copy here? self._reference = reference # TODO: Do we need defensive copy here?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment