Skip to content

Commit

Permalink
Use narrower scope for TypeExpr alias
Browse files Browse the repository at this point in the history
Ref. #282
  • Loading branch information
Alexander Senier committed Jun 29, 2020
1 parent 2f41cbb commit b565d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rflx/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b565d33

Please sign in to comment.