diff --git a/scripts/py_matter_yamltests/matter_yamltests/parser_builder.py b/scripts/py_matter_yamltests/matter_yamltests/parser_builder.py index ae4458ae6990af..72ebae6a1fff8f 100644 --- a/scripts/py_matter_yamltests/matter_yamltests/parser_builder.py +++ b/scripts/py_matter_yamltests/matter_yamltests/parser_builder.py @@ -51,9 +51,10 @@ class TestParserBuilderConfig: current parsing state. """ tests: list[str] = field(default_factory=list) - parser_config: TestParserConfig = TestParserConfig() + parser_config: TestParserConfig = field(default_factory=TestParserConfig) hooks: TestParserHooks = TestParserHooks() - options: TestParserBuilderOptions = TestParserBuilderOptions() + options: TestParserBuilderOptions = field( + default_factory=TestParserBuilderOptions) class TestParserBuilder: