move __repr__ higher

This commit is contained in:
Jan Petykiewicz 2023-07-17 21:28:57 -07:00 committed by jan
parent f7f5a62f54
commit e6ff6daa32

View File

@ -71,6 +71,9 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
#__contains__, keys, items, values, get, __eq__, __ne__ supplied by Mapping
def __repr__(self) -> str:
return '<ILibraryView with keys\n' + pformat(list(self.keys())) + '>'
def abstract_view(self) -> 'AbstractView':
"""
Returns:
@ -90,9 +93,6 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
"""
return Abstract(name=name, ports=self[name].ports)
def __repr__(self) -> str:
return '<ILibraryView with keys\n' + pformat(list(self.keys())) + '>'
def dangling_refs(
self,
tops: str | Sequence[str] | None = None,