reports: Define RelatedPostings.__slots__.
This commit is contained in:
		
							parent
							
								
									aef00ce83f
								
							
						
					
					
						commit
						dd949a4866
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -160,6 +160,7 @@ class RelatedPostings(Sequence[data.Posting]):
 | 
			
		|||
    to organize postings based on some key. See the group_by_meta classmethod
 | 
			
		||||
    for an example.
 | 
			
		||||
    """
 | 
			
		||||
    __slots__ = ('_postings',)
 | 
			
		||||
 | 
			
		||||
    def __init__(self, source: Iterable[data.Posting]=()) -> None:
 | 
			
		||||
        self._postings: List[data.Posting] = list(source)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue