add docstring for Pattern.rename()

This commit is contained in:
Jan Petykiewicz 2021-06-23 22:39:24 -07:00
parent 4788fa3ca5
commit 576077c461

View File

@ -113,6 +113,15 @@ class Pattern(LockableImpl, AnnotatableImpl, Mirrorable, metaclass=AutoSlots):
return new return new
def rename(self: P, name: str) -> P: def rename(self: P, name: str) -> P:
"""
Chainable function for renaming the pattern.
Args:
name: The new name
Returns:
self
"""
self.name = name self.name = name
return self return self