reports: Add RelatedPostings.__repr__() method.
This commit is contained in:
parent
7301bfc099
commit
39c9c0d83a
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ class RelatedPostings(Sequence[data.Posting]):
|
||||||
for value, posts in mapping.items():
|
for value, posts in mapping.items():
|
||||||
yield value, cls(posts, _can_own=True)
|
yield value, cls(posts, _can_own=True)
|
||||||
|
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return f'<{type(self).__name__} {self._postings!r}>'
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def __getitem__(self: RelatedType, index: int) -> data.Posting: ...
|
def __getitem__(self: RelatedType, index: int) -> data.Posting: ...
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue