From 8cdfcb7524b008b62ad5354ba1e25de5e9e41d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Mon, 2 Oct 2023 19:15:10 +0200 Subject: [PATCH] model.base: add missing `item_add_hook` doc to `OrderedNamespaceSet` --- basyx/aas/model/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/basyx/aas/model/base.py b/basyx/aas/model/base.py index 02ee384ea..a238fe2ab 100644 --- a/basyx/aas/model/base.py +++ b/basyx/aas/model/base.py @@ -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] = []