From 54fd42ab5e2de0f59bd2244ce2b7495f3fa7ffef Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sun, 3 Sep 2023 23:23:09 +0200 Subject: [PATCH] fixup! Entities: Add support for package 3D models --- entities/package.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entities/package.py b/entities/package.py index 4e90776..51a1aaa 100644 --- a/entities/package.py +++ b/entities/package.py @@ -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 @@ -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 @@ -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 += ')'