From 61a390662178e568ab9def0c06cde13b0350b07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Sat, 20 Apr 2024 11:20:05 +0200 Subject: [PATCH] MAINT: use new property list class --- src/linkahead/common/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index 084c7e98..f99f8029 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -153,7 +153,7 @@ class Entity: self.datatype: Optional[DATATYPE] = datatype self.value = value self.messages = Messages() - self.properties = _Properties() + self.properties = PropertyList() self.parents = ParentList() self.path: Optional[str] = None self.file: Optional[File] = None @@ -998,7 +998,7 @@ out: List[Entity] def get_properties(self): """Get all properties of this entity. - @return: _Properties(list) + @return: PropertyList(list) """ return self.properties @@ -2664,7 +2664,7 @@ class ParentList(list): raise KeyError(str(parent) + " not found.") -class _Properties(PropertyList): +class PropertyList(PropertyList): def __init__(self, *args, **kwargs): warnings.warn(DeprecationWarning("This class is depricated. Please use PropertyList.")) super().__init__(*args, **kwargs) -- GitLab