Skip to content

Rename Field allows the use of the object datamodels names. #830

Description

@jonh-copin

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))

Activity

  1. added
    bugUnexpected or incorrect user-visible behavior
    on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected or incorrect user-visible behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions