Skip to content
Snippets Groups Projects
Commit 25df9541 authored by Michael Thies's avatar Michael Thies
Browse files

Merge branch 'fix/aasreference_resolve_typing' into 'master'

model: Add typehint in AASReference.resolve() to make mypy happy

See merge request acplt/pyaas!14
parents c480e46d b387ac19
No related branches found
No related tags found
No related merge requests found
Pipeline #252794 passed
......@@ -577,7 +577,7 @@ class AASReference(Reference, Generic[_RT]):
# First, resolve the identifier-key via the provider
identifier: Identifier = self.key[last_identifier_index].get_identifier() # type: ignore
try:
item = provider_.get_identifiable(identifier)
item: Referable = provider_.get_identifiable(identifier)
except KeyError as e:
raise KeyError("Could not resolve global reference key {}".format(identifier)) from e
resolved_keys.append(str(identifier))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment