We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d1c05 commit 571be59Copy full SHA for 571be59
kikit/drc.py
@@ -61,6 +61,8 @@ class DrcExclusion:
61
objects: List[pcbnew.BOARD_ITEM] = field(default_factory=list)
62
63
def eqRepr(self) -> Tuple[str, Union[Tuple[str, str], str]]:
64
+ if len(self.objects) == 0:
65
+ return (self.type, ())
66
if len(self.objects) == 1:
67
objRepr = str(self.objects[0].m_Uuid.AsString()) if isinstance(self.objects[0], pcbnew.BOARD_ITEM) else self.objects[0]
68
return (self.type, objRepr)
0 commit comments