clarify docs for referenced_patterns_by_id()
This commit is contained in:
parent
e684bd0e40
commit
a4f556c3b3
1 changed files with 2 additions and 2 deletions
|
|
@ -423,11 +423,11 @@ class 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)
|
||||
|
||||
Returns:
|
||||
Dictionary of `{id(pat): pat}` for all referenced Pattern objects
|
||||
Dictionary with `{id(pat): pat}` for all referenced Pattern objects
|
||||
"""
|
||||
ids = {}
|
||||
for subpat in self.subpatterns:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue