diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index 9042cdf262b396b40c117867d77c2d9ce95073b7..65e0f18980357b522863c0fdda6fc755d445cfe3 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -700,18 +700,18 @@ out: List[Entity] The parents of this Entity """ - all_parents = _Parents() + all_parents = [] self._get_parent_recursively(all_parents, retrieve=retrieve) return all_parents - def _get_parent_recursively(self, all_parents, retrieve: bool = True): + def _get_parent_recursively(self, all_parents: list, retrieve: bool = True): """Get all ancestors with a little helper. As a side effect of this method, the ancestors are added to all_parents. - @param all_parents: The added parents so far. + @param all_parents: list, The added parents so far. @return: None, but see side effects. """