move __repr__ higher
This commit is contained in:
parent
94300d926a
commit
59290413e7
@ -71,6 +71,9 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||||||
|
|
||||||
#__contains__, keys, items, values, get, __eq__, __ne__ supplied by Mapping
|
#__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':
|
def abstract_view(self) -> 'AbstractView':
|
||||||
"""
|
"""
|
||||||
Returns:
|
Returns:
|
||||||
@ -90,9 +93,6 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||||||
"""
|
"""
|
||||||
return Abstract(name=name, ports=self[name].ports)
|
return Abstract(name=name, ports=self[name].ports)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
|
||||||
return '<ILibraryView with keys\n' + pformat(list(self.keys())) + '>'
|
|
||||||
|
|
||||||
def dangling_refs(
|
def dangling_refs(
|
||||||
self,
|
self,
|
||||||
tops: str | Sequence[str] | None = None,
|
tops: str | Sequence[str] | None = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user