clarify docs for referenced_patterns_by_id()

This commit is contained in:
Jan Petykiewicz 2020-03-14 15:53:05 -07:00
parent e684bd0e40
commit a4f556c3b3

View File

@ -423,11 +423,11 @@ class Pattern:
def referenced_patterns_by_id(self) -> Dict[int, 'Pattern']: def referenced_patterns_by_id(self) -> Dict[int, 'Pattern']:
""" """
Create a dictionary of `{id(pat): pat}` for all Pattern objects referenced by this Create a dictionary with `{id(pat): pat}` for all Pattern objects referenced by this
Pattern (operates recursively on all referenced Patterns as well) Pattern (operates recursively on all referenced Patterns as well)
Returns: Returns:
Dictionary of `{id(pat): pat}` for all referenced Pattern objects Dictionary with `{id(pat): pat}` for all referenced Pattern objects
""" """
ids = {} ids = {}
for subpat in self.subpatterns: for subpat in self.subpatterns: