Skip to content

Commit cc1c806

Browse files
[pyobas] Update mandatory contract properties
1 parent 34eb22b commit cc1c806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyobas/contracts/contract_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ class ContractElement(ABC):
7171
key: str
7272
label: str
7373
type: str = field(default="", init=False)
74-
mandatoryGroups: List[str] = None
75-
mandatoryConditionField: str = None
76-
mandatoryConditionValue: str = None
74+
mandatoryGroups: List["ContractElement"] = field(default_factory=list)
75+
mandatoryConditionField: List["ContractElement"] = field(default_factory=list)
76+
mandatoryConditionValue: List[str] = field(default_factory=list)
7777
linkedFields: List["ContractElement"] = field(default_factory=list)
7878
linkedValues: List[str] = field(default_factory=list)
7979
mandatory: bool = False

0 commit comments

Comments
 (0)