Skip to content

Commit

Permalink
model.base: add missing item_add_hook doc to OrderedNamespaceSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs authored and s-heppner committed Oct 3, 2023
1 parent 9e8d46c commit 8cdfcb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,9 @@ def __init__(self, parent: Union[UniqueIdShortNamespace, UniqueSemanticIdNamespa
:attribute_names: Dict of attribute names, for which objects should be unique in the set. The bool flag
indicates if the attribute should be matched case-sensitive (true) or case-insensitive (false)
:param items: A given list of Referable items to be added to the set
:param item_add_hook: A function that is called for each item that is added to this NamespaceSet, even when
it is initialized. The first parameter is the item that is added while the second is
an iterator over all currently contained items. Useful for constraint checking.
:raises KeyError: When `items` contains multiple objects with same id_short
"""
self._order: List[_NSO] = []
Expand Down

0 comments on commit 8cdfcb7

Please sign in to comment.