File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 22from abc import ABC , abstractmethod
33from dataclasses import dataclass , field
44from enum import Enum
5- from typing import List
5+ from typing import Dict , List
66
77from pyobas import utils
88from pyobas .contracts .contract_utils import ContractCardinality , ContractVariable
@@ -73,11 +73,12 @@ 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
79- linkedFields : List ["ContractElement" ] = field (default_factory = list )
80- linkedValues : List [str ] = field (default_factory = list )
76+ mandatoryGroups : List [str ] = field (default_factory = list )
77+ mandatoryConditionFields : List [str ] = field (default_factory = list )
78+ mandatoryConditionValues : Dict [str , any ] = field (default_factory = list )
79+ visibleConditionFields : List [str ] = field (default_factory = list )
80+ visibleConditionValues : Dict [str , any ] = field (default_factory = list )
81+ linkedFields : List [str ] = field (default_factory = list )
8182 mandatory : bool = False
8283 readOnly : bool = False
8384
You can’t perform that action at this time.
0 commit comments