Core: Add a Python interface for property rename

This commit is contained in:
Pieter Hijma
2025-05-18 15:09:55 +02:00
committed by Yorik van Havre
parent e7f8f2f48c
commit 18d87df6f1
2 changed files with 36 additions and 0 deletions

View File

@@ -211,3 +211,17 @@ class PropertyContainer(Persistence):
Object with buffer protocol support.
"""
...
@constmethod
def renameProperty(self, oldName: str, newName: str) -> None:
"""
renameProperty(oldName, newName) -> None
Rename a property.
oldName : str
Old property name.
newName : str
New property name.
"""
...