From 56f0ff0361e4d4e4f9d38d85f3be43e9942937dd Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 2 Oct 2024 13:13:26 +0200 Subject: [PATCH] Compat with python <= 3.8 --- neomodel/async_/match.py | 4 ++-- neomodel/sync_/match.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/neomodel/async_/match.py b/neomodel/async_/match.py index f3390340..abe796e0 100644 --- a/neomodel/async_/match.py +++ b/neomodel/async_/match.py @@ -2,7 +2,7 @@ import re from collections import defaultdict from dataclasses import dataclass -from typing import Any, Optional +from typing import Any, List, Optional from neomodel.async_.core import AsyncStructuredNode, adb from neomodel.async_.relationship import AsyncStructuredRel @@ -1252,7 +1252,7 @@ async def resolve_subgraph(self) -> list: return results async def subquery( - self, nodeset: "AsyncNodeSet", return_set: list[str] + self, nodeset: "AsyncNodeSet", return_set: List[str] ) -> "AsyncNodeSet": """Add a subquery to this node set. diff --git a/neomodel/sync_/match.py b/neomodel/sync_/match.py index 4ea10560..4ba70e2f 100644 --- a/neomodel/sync_/match.py +++ b/neomodel/sync_/match.py @@ -2,7 +2,7 @@ import re from collections import defaultdict from dataclasses import dataclass -from typing import Any, Optional +from typing import Any, List, Optional from neomodel.exceptions import MultipleNodesReturned from neomodel.match_q import Q, QBase @@ -1249,7 +1249,7 @@ def resolve_subgraph(self) -> list: ) return results - def subquery(self, nodeset: "NodeSet", return_set: list[str]) -> "NodeSet": + def subquery(self, nodeset: "NodeSet", return_set: List[str]) -> "NodeSet": """Add a subquery to this node set. A subquery is a regular cypher query but executed within the context of a CALL