From 81940469ac4f507d482d00fda1197afac4679d7c Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Sun, 15 Nov 2020 17:27:59 +0100 Subject: [PATCH] Add TODO re. missing connection count --- src/wireviz/wireviz.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wireviz/wireviz.py b/src/wireviz/wireviz.py index 2104545..9373791 100755 --- a/src/wireviz/wireviz.py +++ b/src/wireviz/wireviz.py @@ -109,6 +109,13 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st connectioncount.append(None) # strings do not reveal connectioncount if not any(connectioncount): raise Exception('No item in connection set revealed number of connections') + # TODO: The following should be a valid connection set, + # even though no item reveals the connection count; + # the count is not needed because only a component-level mate happens. + # - + # - CONNECTOR + # - ==> + # - CONNECTOR # check that all entries are the same length if len(set(filter(None, connectioncount))) > 1: