Remove unused parameter

This commit is contained in:
Jason R. Jones 2020-07-24 21:10:24 -04:00
parent 4747f2e173
commit f64fac0b62

View File

@ -17,12 +17,11 @@ from wireviz.Harness import Harness
from wireviz.wv_helper import expand, open_file_read
def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, str, Tuple[str]) = None) -> Any:
def parse(yaml_input: str, return_types: (None, str, Tuple[str]) = None) -> Any:
"""
Parses yaml input string and does the high-level harness conversion
:param yaml_input: a string containing the yaml input data
:param file_out:
:param return_types: if None, then returns None; if the value is a string, then a
corresponding data format will be returned; if the value is a tuple of strings,
then for every valid format in the `return_types` tuple, another return type
@ -166,9 +165,6 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
for line in yaml_data["additional_bom_items"]:
harness.add_bom_item(line)
if file_out is not None:
harness.output(filename=file_out, fmt=('png', 'svg'), view=False)
if return_types is not None:
returns = []
if isinstance(return_types, str): # only one return type speficied