Skip to content

Commit

Permalink
Fixed python 3.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Oct 3, 2024
1 parent 8d980d1 commit 27d6ecc
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, List
from typing import Any, Dict, List
from typing import Optional as TOptional
from typing import Tuple, Union

Expand Down Expand Up @@ -432,7 +432,7 @@ def __init__(
self._node_counters = defaultdict(int)
self._with_subgraph: bool = with_subgraph
self._subquery_context: bool = subquery_context
self._relation_identifiers: dict[str, str] = {}
self._relation_identifiers: Dict[str, str] = {}

async def build_ast(self) -> "AsyncQueryBuilder":
if hasattr(self.node_set, "relations_to_fetch"):
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, List
from typing import Any, Dict, List
from typing import Optional as TOptional
from typing import Tuple, Union

Expand Down Expand Up @@ -432,7 +432,7 @@ def __init__(
self._node_counters = defaultdict(int)
self._with_subgraph: bool = with_subgraph
self._subquery_context: bool = subquery_context
self._relation_identifiers: dict[str, str] = {}
self._relation_identifiers: Dict[str, str] = {}

def build_ast(self) -> "QueryBuilder":
if hasattr(self.node_set, "relations_to_fetch"):
Expand Down

0 comments on commit 27d6ecc

Please sign in to comment.