Skip to content

Commit 667e8de

Browse files
[pyobas] Update mandatory contract properties
1 parent cc2386c commit 667e8de

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
@@ -73,9 +73,9 @@ class ContractElement(ABC):
7373
key: str
7474
label: str
7575
type: str = field(default="", init=False)
76-
mandatoryGroups: List[str] = None
77-
mandatoryConditionField: str = None
78-
mandatoryConditionValue: str = None
76+
mandatoryGroups: List["ContractElement"] = field(default_factory=list)
77+
mandatoryConditionFields: List["ContractElement"] = field(default_factory=list)
78+
mandatoryConditionValues: List[str] = field(default_factory=list)
7979
linkedFields: List["ContractElement"] = field(default_factory=list)
8080
linkedValues: List[str] = field(default_factory=list)
8181
mandatory: bool = False

0 commit comments

Comments
 (0)