This repository was archived by the owner on Aug 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class DataFlowSourceConfig:
19
19
features : Features = field (
20
20
"Features to pass as definitions to each context from each "
21
21
"record to be preprocessed" ,
22
- default = Features (),
22
+ default_factory = lambda : Features (),
23
23
)
24
24
inputs : List [str ] = field (
25
25
"Other inputs to add under each ctx (record's key will "
@@ -42,7 +42,8 @@ class DataFlowSourceConfig:
42
42
"Do not exit on operation exceptions, just log errors" , default = False ,
43
43
)
44
44
orchestrator : BaseOrchestrator = field (
45
- "Orchestrator" , default = MemoryOrchestrator .withconfig ({}),
45
+ "Orchestrator" ,
46
+ default_factory = lambda : MemoryOrchestrator .withconfig ({}),
46
47
)
47
48
48
49
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class DataFlowPreprocessSourceConfig:
21
21
features : Features = field (
22
22
"Features to pass as definitions to each context from each "
23
23
"record to be preprocessed" ,
24
- default = Features (),
24
+ default_factory = lambda : Features (),
25
25
)
26
26
inputs : List [str ] = field (
27
27
"Other inputs to add under each ctx (record's key will "
@@ -47,7 +47,8 @@ class DataFlowPreprocessSourceConfig:
47
47
"Do not exit on operation exceptions, just log errors" , default = False ,
48
48
)
49
49
orchestrator : BaseOrchestrator = field (
50
- "Orchestrator" , default = MemoryOrchestrator .withconfig ({}),
50
+ "Orchestrator" ,
51
+ default_factory = lambda : MemoryOrchestrator .withconfig ({}),
51
52
)
52
53
53
54
You can’t perform that action at this time.
0 commit comments