Verified Commit e1ec36c2 authored by Leon Mauritz Möller's avatar Leon Mauritz Möller
Browse files

adapter.json: return object_class in _construct_reference()

parent 0aa364d8
Pipeline #259956 passed with stage
in 3 minutes and 22 seconds
......@@ -258,7 +258,7 @@ class AASFromJsonDecoder(json.JSONDecoder):
def _construct_reference(cls, dct: Dict[str, object], object_class=model.Reference) -> model.Reference:
keys = [cls._construct_key(key_data) for key_data in _get_ts(dct, "keys", list)]
return model.Reference(tuple(keys))
return object_class(tuple(keys))
def _construct_aas_reference(cls, dct: Dict[str, object], type_: Type[T], object_class=model.AASReference)\
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment