Add suggestions from #186

This commit is contained in:
Daniel Rojas 2022-08-05 18:45:48 +02:00 committed by KV
parent c3b07cf3dd
commit 162fe443d1

View File

@ -70,9 +70,10 @@ def expand(yaml_data):
def get_single_key_and_value(d: dict): def get_single_key_and_value(d: dict):
k = list(d.keys())[0] # used for defining a line in a harness' connection set
v = d[k] # E.g. for the YAML input `- X1: 1`
return (k, v) # this function returns a tuple in the form ("X1", "1")
return next(iter(d.items()))
def int2tuple(inp): def int2tuple(inp):