From 89b28858d32e94ebcbf7e7dd01dd0a7c3a8d1d4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Mon, 20 Feb 2023 12:17:31 +0100
Subject: [PATCH] MAINT: rename _Parents to _ParentList

---
 CHANGELOG.md                | 1 +
 src/caosdb/common/models.py | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2429ef0c..7786c995 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Added ###
 
 ### Changed ###
+- Renamed `_Parents` to `_ParentList`.
 
 ### Deprecated ###
 
diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py
index 65e0f189..70b4bfa2 100644
--- a/src/caosdb/common/models.py
+++ b/src/caosdb/common/models.py
@@ -112,7 +112,7 @@ class Entity:
         self.value = value
         self.messages = _Messages()
         self.properties = _Properties()
-        self.parents = _Parents()
+        self.parents = _ParentList()
         self.path = None
         self.file = None
         self.unit = None
@@ -680,7 +680,7 @@ out: bool
     def get_parents(self):
         """Get all parents of this entity.
 
-        @return: _Parents(list)
+        @return: _ParentList(list)
         """
 
         return self.parents
@@ -2129,7 +2129,8 @@ class _Properties(list):
         raise KeyError(str(prop) + " not found.")
 
 
-class _Parents(list):
+class _ParentList(list):
+    # TODO unclear why this class is private. Isn't it use full for users?
 
     def _get_entity_by_cuid(self, cuid):
         '''
-- 
GitLab