Skip to content

Commit

Permalink
Fix missing footprint DRC exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Sep 29, 2024
1 parent a8d1c05 commit 571be59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kikit/drc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class DrcExclusion:
objects: List[pcbnew.BOARD_ITEM] = field(default_factory=list)

def eqRepr(self) -> Tuple[str, Union[Tuple[str, str], str]]:
if len(self.objects) == 0:
return (self.type, ())
if len(self.objects) == 1:
objRepr = str(self.objects[0].m_Uuid.AsString()) if isinstance(self.objects[0], pcbnew.BOARD_ITEM) else self.objects[0]
return (self.type, objRepr)
Expand Down

0 comments on commit 571be59

Please sign in to comment.