diff --git a/odxtools/nameditemlist.py b/odxtools/nameditemlist.py index 650c5362..861f0467 100644 --- a/odxtools/nameditemlist.py +++ b/odxtools/nameditemlist.py @@ -172,7 +172,7 @@ def __str__(self) -> str: return f"[{', '.join( [self._get_item_key(x) for x in self])}]" def __repr__(self) -> str: - return f"[{', '.join([repr(x) for x in self])}]" + return f"{type(self).__name__}([{', '.join([repr(x) for x in self])}])" class NamedItemList(ItemAttributeList[T]):