rope
rope copied to clipboard
Rename Field allows the use of the object datamodels names.
Rename Field allows the use of the object datamodels names.
Steps to reproduce the behavior:
- Code before refactoring:
class Exemplo:
texto = str
def __init__(self):
print("__init__ rodou")
obj = Exemplo()
print(type(obj))
-
Apply the rename field to
Exemplo.texto -
Code after refactoring:
class Exemplo:
__new__ = str
def __init__(self):
print("__init__ rodou")
obj = Exemplo()
print(type(obj))