From 53ffa88a9b57792e875df9f149638afdbb869c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Fri, 15 Sep 2023 09:51:43 +0200 Subject: [PATCH] MAINT: rename CaosDBPythonEntity -> LinkAheadPythonEntity --- src/linkahead/high_level_api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/linkahead/high_level_api.py b/src/linkahead/high_level_api.py index 49cb51d8..96fc09af 100644 --- a/src/linkahead/high_level_api.py +++ b/src/linkahead/high_level_api.py @@ -264,7 +264,7 @@ class LinkAheadPythonEntity(object): def _set_property_from_entity(self, ent: db.Entity, importance: str, references: Optional[db.Container], - visited: Dict[int, "CaosDBPythonEntity"]): + visited: Dict[int, "LinkAheadPythonEntity"]): """ Set a new property using an entity from the normal python API. @@ -382,7 +382,7 @@ class LinkAheadPythonEntity(object): val: List, pr: str, references: Optional[db.Container], - visited: Dict[int, "CaosDBPythonEntity"]): + visited: Dict[int, "LinkAheadPythonEntity"]): """ Convert a list to a python list of the correct type. @@ -403,7 +403,7 @@ class LinkAheadPythonEntity(object): val: Any, pr: str, references: Optional[db.Container], - visited: Dict[int, "CaosDBPythonEntity"]): + visited: Dict[int, "LinkAheadPythonEntity"]): """ Convert val to the correct type which is indicated by the database type string in pr. @@ -810,7 +810,7 @@ def _single_convert_to_python_object(robj: LinkAheadPythonEntity, entity: db.Entity, references: Optional[db.Container] = None, visited: Optional[Dict[int, - "CaosDBPythonEntity"]] = None): + "LinkAheadPythonEntity"]] = None): """ Convert a db.Entity from the standard API to a (previously created) LinkAheadPythonEntity from the high level API. @@ -941,7 +941,7 @@ def convert_to_entity(python_object): def convert_to_python_object(entity: Union[db.Container, db.Entity], references: Optional[db.Container] = None, visited: Optional[Dict[int, - "CaosDBPythonEntity"]] = None): + "LinkAheadPythonEntity"]] = None): """ Convert either a container of LinkAhead entities or a single LinkAhead entity into the high level representation. -- GitLab