Skip to content

Commit

Permalink
fixup! Entities: Add support for package 3D models
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Sep 3, 2023
1 parent d609b30 commit 54fd42a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions entities/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def __init__(self, uuid: str, name: Name):
def __str__(self) -> str:
return f'(3d_model {self.uuid} {self.name})\n'

def __eq__(self, other):
def __eq__(self, other): # type: ignore
return self.uuid == other.uuid and self.name == other.name

def __lt__(self, other):
def __lt__(self, other): # type: ignore
if self.uuid == other.uuid:
return self.name < other.name
return self.uuid < other.uuid
Expand All @@ -42,10 +42,10 @@ def __init__(self, uuid: str):
def __str__(self) -> str:
return f'(3d_model {self.uuid})\n'

def __eq__(self, other):
def __eq__(self, other): # type: ignore
return self.uuid == other.uuid

def __lt__(self, other):
def __lt__(self, other): # type: ignore
return self.uuid < other.uuid


Expand Down Expand Up @@ -338,7 +338,7 @@ def __str__(self) -> str:
''.join([' {}\n'.format(cat) for cat in self.categories]) +\
' {}\n'.format(self.assembly_type)
ret += indent_entities(self.pads)
ret += indent_entities(sorted(self.models_3d))
ret += indent_entities(self.models_3d)
ret += indent_entities(self.footprints)
ret += indent_entities(sorted(self.approvals))
ret += ')'
Expand Down

0 comments on commit 54fd42a

Please sign in to comment.