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):
k = list(d.keys())[0]
v = d[k]
return (k, v)
# used for defining a line in a harness' connection set
# E.g. for the YAML input `- X1: 1`
# this function returns a tuple in the form ("X1", "1")
return next(iter(d.items()))
def int2tuple(inp):