Skip to content

Commit

Permalink
model.base: change type of SpecificAssetId.value to Identifier (#114
Browse files Browse the repository at this point in the history
)

Co-authored-by: s-heppner <s.heppner@plt.rwth-aachen.de>
  • Loading branch information
jkhsjdhjs and s-heppner authored Aug 24, 2023
1 parent e0e724b commit 07ca8d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,16 +2026,17 @@ class SpecificAssetId(HasSemantics):

def __init__(self,
name: LabelType,
value: str,
value: Identifier,
external_subject_id: ExternalReference,
semantic_id: Optional[Reference] = None,
supplemental_semantic_id: Iterable[Reference] = ()):
super().__init__()
if value == "":
raise ValueError("value is not allowed to be an empty string")
_string_constraints.check_label_type(name)
_string_constraints.check_identifier(value)
self.name: LabelType
self.value: str
self.value: Identifier
self.external_subject_id: ExternalReference

super().__setattr__('name', name)
Expand Down

0 comments on commit 07ca8d7

Please sign in to comment.