Add TODO for empty connector pin tables

This commit is contained in:
Daniel Rojas 2021-11-15 18:09:32 +01:00 committed by Laurier Loiselle
parent d8f38c5f25
commit 7aef7f707c
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -215,6 +215,9 @@ def gv_pin_table(component) -> Table:
for pin in component.pin_objects.values():
if component.should_show_pin(pin.id):
pin_rows.append(gv_pin_row(pin, component))
if len(pin_rows) == 0:
# TODO: write test for empty pin tables, and for unconnected connectors that hide disconnected pins
pass
tbl = Table(pin_rows, border=0, cellborder=1, cellpadding=3, cellspacing=0)
return tbl