Skip to content

Commit

Permalink
Compat with python <= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Oct 2, 2024
1 parent 55e04bc commit 56f0ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions neomodel/async_/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions neomodel/sync_/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 56f0ff0

Please sign in to comment.