Skip to content

Commit

Permalink
Fix pycodestyle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zrgt authored and s-heppner committed Oct 19, 2023
1 parent b1d0c3f commit f72b99f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions basyx/aas/adapter/json/json_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ def _construct_asset_information(cls, dct: Dict[str, object], object_class=model
ret.global_asset_id = _get_ts(dct, 'globalAssetId', str)
if 'specificAssetIds' in dct:
for desc_data in _get_ts(dct, "specificAssetIds", list):
ret.specific_asset_id.add(cls._construct_specific_asset_id(desc_data,
model.SpecificAssetId))
ret.specific_asset_id.add(cls._construct_specific_asset_id(desc_data, model.SpecificAssetId))
if 'assetType' in dct:
ret.asset_type = _get_ts(dct, 'assetType', str)
if 'defaultThumbnail' in dct:
Expand Down
4 changes: 2 additions & 2 deletions basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,8 @@ def construct_submodel(cls, element: etree.Element, object_class=model.Submodel,
return submodel

@classmethod
def construct_value_reference_pair(cls, element: etree.Element, object_class=model.ValueReferencePair
, **_kwargs: Any) -> model.ValueReferencePair:
def construct_value_reference_pair(cls, element: etree.Element, object_class=model.ValueReferencePair,
**_kwargs: Any) -> model.ValueReferencePair:
return object_class(_child_text_mandatory(element, NS_AAS + "value"),
_child_construct_mandatory(element, NS_AAS + "valueId", cls.construct_reference))

Expand Down

0 comments on commit f72b99f

Please sign in to comment.