Skip to content

Commit

Permalink
38 compatible (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
LNS98 authored May 22, 2024
1 parent 4ae69b1 commit e6d17b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module-name = "drisk_api"

[project]
name = "drisk_api"
version = "0.0.1"
requires-python = ">=3.7"
version = "0.0.2"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
14 changes: 7 additions & 7 deletions python/drisk_api/graph_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def get_successors(
self,
node_id: UUID,
weights=False,
) -> Union[list[UUID], list[tuple[UUID, float]]]:
) -> Union[List[UUID], List[Tuple[UUID, float]]]:
"""
Get the successors of a node.
Expand All @@ -183,8 +183,8 @@ def get_successors(
Returns
-------
Union[list[UUID], list[tuple[UUID, float]]]: A list of successor node
IDs, or a list of tuples containing successor node IDs and their
Union[List[UUID], List[Tuple[UUID, float]]]: A List of successor node
IDs, or a List of Tuples containing successor node IDs and their
weights if `weights` is True.
"""
Expand All @@ -194,7 +194,7 @@ def get_predecessors(
self,
node_id: UUID,
weights=False,
) -> Union[list[UUID], list[tuple[UUID, float]]]:
) -> Union[List[UUID], List[Tuple[UUID, float]]]:
"""
Get the predecessors of a node.
Expand All @@ -205,8 +205,8 @@ def get_predecessors(
Returns
-------
Union[list[UUID], list[tuple[UUID, float]]]: A list of predecessors node
IDs, or a list of tuples containing successor node IDs and their
Union[List[UUID], List[Tuple[UUID, float]]]: A List of predecessors node
IDs, or a List of Tuples containing successor node IDs and their
weights if `weights` is True.
"""
Expand Down Expand Up @@ -285,7 +285,7 @@ def add_nodes_to_view(
----
view_node (str): The ID of the view node.
nodes (List[str]): List of node IDs to add to the view.
coords (List[Tuple]): List of coordinate tuples (x, y) for each node.
coords (List[Tuple]): List of coordinate Tuples (x, y) for each node.
"""
x_node, y_node, *_ = [
Expand Down

0 comments on commit e6d17b1

Please sign in to comment.