shorten labels
This commit is contained in:
parent
de0d35d3d7
commit
b13d7286e5
@ -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 += ']>'
|
||||||
|
Loading…
Reference in New Issue
Block a user