File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ def __post_init__(self) -> None:
747
747
if self .show_name is None :
748
748
self .show_name = not self .is_autogenerated
749
749
750
- if not self .show_wirenumbers :
750
+ if self .show_wirenumbers is None :
751
751
# by default, show wire numbers for cables, hide for bundles
752
752
self .show_wirenumbers = self .category != "bundle"
753
753
Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ def expand(yaml_data):
70
70
71
71
72
72
def get_single_key_and_value (d : dict ):
73
- k = list (d .keys ())[0 ]
74
- v = d [k ]
75
- return (k , v )
73
+ # used for defining a line in a harness' connection set
74
+ # E.g. for the YAML input `- X1: 1`
75
+ # this function returns a tuple in the form ("X1", "1")
76
+ import pudb ; pudb .set_trace ()
77
+ return next (iter (d .items ()))
76
78
77
79
78
80
def int2tuple (inp ):
You can’t perform that action at this time.
0 commit comments