shorten labels

This commit is contained in:
jan 2023-04-07 23:50:31 -07:00
parent de0d35d3d7
commit b13d7286e5

View File

@ -99,7 +99,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
self.annotations = annotations if annotations is not None else {} self.annotations = annotations if annotations is not None else {}
def __repr__(self) -> str: def __repr__(self) -> str:
s = f'<Pattern: sh{len(self.shapes)} sp{len(self.refs)} la{len(self.labels)} [' s = f'<Pattern: s{len(self.shapes)} r{len(self.refs)} l{len(self.labels)} ['
for name, port in self.ports.items(): for name, port in self.ports.items():
s += f'\n\t{name}: {port}' s += f'\n\t{name}: {port}'
s += ']>' s += ']>'