Skip to content

Commit 9449025

Browse files
author
Leon Huang
committed
typo
1 parent f673318 commit 9449025

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/basyx/aas/model/submodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ def __init__(self,
11201120
self._validate_aasd_014(entity_type, global_asset_id, bool(specific_asset_id))
11211121

11221122
@property
1123-
def entity_type(self) -> base.EntityType | None:
1123+
def entity_type(self) -> Optional[base.EntityType]:
11241124
return self._entity_type
11251125

11261126
@entity_type.setter
@@ -1171,7 +1171,7 @@ def _validate_aasd_014(entity_type: Optional[base.EntityType],
11711171
global_asset_id: Optional[base.Identifier],
11721172
specific_asset_id_nonempty: bool) -> None:
11731173
if entity_type is None:
1174-
return
1174+
return
11751175
if entity_type == base.EntityType.SELF_MANAGED_ENTITY and global_asset_id is None \
11761176
and not specific_asset_id_nonempty:
11771177
raise base.AASConstraintViolation(

0 commit comments

Comments
 (0)