reports: Define RelatedPostings.__slots__.

This commit is contained in:
Brett Smith 2020-05-30 10:40:24 -04:00
parent aef00ce83f
commit dd949a4866

View file

@ -160,6 +160,7 @@ class RelatedPostings(Sequence[data.Posting]):
to organize postings based on some key. See the group_by_meta classmethod to organize postings based on some key. See the group_by_meta classmethod
for an example. for an example.
""" """
__slots__ = ('_postings',)
def __init__(self, source: Iterable[data.Posting]=()) -> None: def __init__(self, source: Iterable[data.Posting]=()) -> None:
self._postings: List[data.Posting] = list(source) self._postings: List[data.Posting] = list(source)