Skip to content

Commit

Permalink
model.base: improve two docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs authored and s-heppner committed Mar 14, 2024
1 parent 71a389b commit d24e612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def _direct_source_commit(self):

class UnexpectedTypeError(TypeError):
"""
Exception to be raised by :meth:`basyx.aas.model.base.ModelReference.resolve` if the retrieved object has not
Exception to be raised by :meth:`.ModelReference.resolve` if the retrieved object has not
the expected type.
:ivar value: The object of unexpected type
Expand Down Expand Up @@ -1029,7 +1029,7 @@ def resolve(self, provider_: "provider.AbstractObjectProvider") -> _RT:
:return: The referenced object (or a proxy object for it)
:raises IndexError: If the list of keys is empty
:raises TypeError: If one of the intermediate objects on the path is not a
:class:`~basyx.aas.model.base.Namespace`
:class:`~.UniqueIdShortNamespace`
:raises ValueError: If a non-numeric index is given to resolve in a
:class:`~basyx.aas.model.submodel.SubmodelElementList`
:raises UnexpectedTypeError: If the retrieved object is not of the expected type (or one of its subclasses). The
Expand Down

0 comments on commit d24e612

Please sign in to comment.