rope icon indicating copy to clipboard operation
rope copied to clipboard

Rename Field allows the use of the object datamodels names.

Open jonh-copin opened this issue 1 month ago • 0 comments

Rename Field allows the use of the object datamodels names.

Steps to reproduce the behavior:

  1. Code before refactoring:
class Exemplo:
    texto = str

    def __init__(self):
        print("__init__ rodou")

obj = Exemplo()
print(type(obj))
  1. Apply the rename field to Exemplo.texto

  2. Code after refactoring:

class Exemplo:
    __new__ = str

    def __init__(self):
        print("__init__ rodou")

obj = Exemplo()
print(type(obj))

jonh-copin avatar Nov 24 '25 19:11 jonh-copin