diff --git a/rflx/model.py b/rflx/model.py index c11c8b793b..a9519d9eac 100644 --- a/rflx/model.py +++ b/rflx/model.py @@ -449,9 +449,6 @@ class MessageState(Base): field_condition: Mapping[Field, Expr] = {} -TypeExpr = Union[Type, Expr] - - @invariant(lambda self: valid_message_field_types(self)) class AbstractMessage(Type): # pylint: disable=too-many-arguments @@ -723,6 +720,9 @@ def __check_attributes(self, expression: Expr, location: Location = None) -> Non # pylint: disable=too-many-statements def __check_relations(self, expression: Expr, literals: Dict[ID, Enumeration]) -> None: + + TypeExpr = Union[Type, Expr] + def check_composite_element_range( relation: Relation, aggregate: Aggregate, composite: Composite ) -> None: