add docstring for Pattern.rename()
This commit is contained in:
parent
4788fa3ca5
commit
576077c461
@ -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…
Reference in New Issue
Block a user