From fe84217393b9931ab962686623a125b9e044466a Mon Sep 17 00:00:00 2001 From: Joscha Schmiedt <joscha@schmiedt.dev> Date: Sat, 20 Apr 2024 22:28:24 +0200 Subject: [PATCH] Fix type hint error --- src/linkahead/common/datatype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkahead/common/datatype.py b/src/linkahead/common/datatype.py index 4aaa68d4..5d54865c 100644 --- a/src/linkahead/common/datatype.py +++ b/src/linkahead/common/datatype.py @@ -176,7 +176,7 @@ def get_id_of_datatype(datatype: str) -> int: q = "FIND RECORDTYPE {}".format(datatype) # we cannot use unique=True here, because there might be subtypes - res = execute_query(q) + res: Container = execute_query(q) # type: ignore if isinstance(res, int): raise ValueError("FIND RECORDTYPE query returned an `int`") res: List[Entity] = [el for el in res if el.name.lower() == datatype.lower()] # type: ignore -- GitLab