Commit 51f7fb36 authored by Marco's avatar Marco Committed by Adrian Wuillemet
Browse files

reader.py added function-descriptions

parent c6f6c415
......@@ -73,7 +73,7 @@ def parse_bds(file: IO) -> dict:
return data
def get_nodes_bds(transition: dict, data: dict) -> dict:
def get_nodes_bds(transition: dict, data: dict) -> List[Dict[str, str]]:
"""
Append all nodes of transitions to data[NODES]
......@@ -81,7 +81,7 @@ def get_nodes_bds(transition: dict, data: dict) -> dict:
:param transition: dict - to extract nodes from
:param data: dict - to add extracted nodes to
:return: Dictionary
:return: List of nodes as Dictionaries
"""
for key in [FROM, TO]:
......@@ -97,7 +97,7 @@ def handle_start_node_bds(name: str) -> dict:
Method to parse input file into an internally usable version (dict).
:param name: str - name of node to check for start condition
:return: node as a Dictionary
:return: node as Dictionary
"""
node: dict = {ID: name}
......@@ -118,7 +118,7 @@ def append_node_bds(node: dict, nodes: list) -> List[Dict[str, str]]:
:param node: dict - to add to nodes
:param nodes: list to add node to
:return: List of Dictionaries
:return: List of nodes as Dictionaries
"""
if node in nodes:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment