add docstring for Pattern.rename()
This commit is contained in:
parent
4788fa3ca5
commit
576077c461
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue