Skip to content

Commit

Permalink
fix: mypy (support 3.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Jan 6, 2025
1 parent 0849160 commit c53560c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adbnx_adapter/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

from abc import ABC
from typing import Any, Dict, List, Optional, Set
from typing import Any, Dict, List, Optional, Set, Union

from arango.graph import Graph as ADBGraph
from networkx.classes.graph import Graph as NXGraph
Expand Down Expand Up @@ -92,7 +92,7 @@ def _keyify_networkx_edge(
to_node_id: NxId,
nx_map: Dict[NxId, str],
col: str,
) -> str | None:
) -> Union[str, None]:
raise NotImplementedError # pragma: no cover

def _prepare_networkx_node(
Expand Down
4 changes: 2 additions & 2 deletions adbnx_adapter/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Dict, List, Tuple

from .abc import Abstract_ADBNX_Controller
from .typings import Json, NxData, NxId
from .typings import Json, NxData, NxId, Union


class ADBNX_Controller(Abstract_ADBNX_Controller):
Expand Down Expand Up @@ -140,7 +140,7 @@ def _keyify_networkx_edge(
to_node_id: NxId,
nx_map: Dict[NxId, str],
col: str,
) -> str | None:
) -> Union[str, None]:
"""Given a NetworkX edge, its collection, and its pair of nodes, derive
its ArangoDB key. If None is returned, an auto-generated key will be used.
Expand Down

0 comments on commit c53560c

Please sign in to comment.