Skip to content

Commit

Permalink
removed subscribed type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ley committed Oct 20, 2023
1 parent 8b274f8 commit 4b05b63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ontoloviz/obo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def build_non_separator_based_tree(file_name: str = None) -> dict:
return tree


def handle_and_assign_nodes(to_process: list = None, tree: dict = None) -> list[int]:
def handle_and_assign_nodes(to_process: list = None, tree: dict = None) -> list:
drop_idxs = []
for idx, (attempts, node) in enumerate(to_process):
if attempts >= 20:
Expand All @@ -48,7 +48,7 @@ def handle_and_assign_nodes(to_process: list = None, tree: dict = None) -> list[
return drop_idxs


def parse_file_to_extract_root_nodes_and_processable_lines(input_file: str = None) -> tuple[dict, list]:
def parse_file_to_extract_root_nodes_and_processable_lines(input_file: str = None) -> tuple:
tree = dict()
to_process = list()
duplicate_check = list()
Expand All @@ -70,7 +70,7 @@ def parse_file_to_extract_root_nodes_and_processable_lines(input_file: str = Non


def handle_and_assign_root_nodes(node_id: str = None, tree: dict = None, to_process: list = None,
line_data: list[str] = None):
line_data: list = None):
parent = line_data[0]
count = safe_convert_int(line_data[3])
color = line_data[4]
Expand Down

0 comments on commit 4b05b63

Please sign in to comment.