Skip to content

Commit

Permalink
Fix errors from MyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
zrgt committed Oct 29, 2023
1 parent 91bfe92 commit 0386628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class Referable(HasExtension, metaclass=abc.ABCMeta):
Default is an empty string, making it use the source of its ancestor, if possible.
"""
@abc.abstractmethod
def __init__(self) -> None:
def __init__(self):
super().__init__()
self._id_short: Optional[NameType] = None
self.display_name: Optional[MultiLanguageNameType] = dict()
Expand Down
2 changes: 1 addition & 1 deletion basyx/aas/model/submodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ def entity_type(self) -> base.EntityType:
@entity_type.setter
def entity_type(self, entity_type: base.EntityType) -> None:
self._validate_asset_ids_for_entity_type(entity_type, self.global_asset_id, self.specific_asset_id)
self._entity_type = entity_type
self._entity_type: base.EntityType = entity_type

@property
def global_asset_id(self):
Expand Down

0 comments on commit 0386628

Please sign in to comment.