diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index 084c7e9823fe9ddb2cffbc0eea440cf9abf54109..f99f8029f340d0a37af1aec445c5e22b15ac52ff 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)