python-rope / rope

a python refactoring library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rename Field refactoring allows the use of declared method names as new field names

researcher175 opened this issue · comments

Rename Field refactoring allows the use of declared method names as new field names
It would be nice if Rope emits an alert to the user and asks if want to continue the application, avoiding incompatible types

Steps to reproduce the behavior:

  1. Code before refactoring:
string_types = (str,)


def with_metaclass():
    pass
  1. Apply the Rename Field refactoring using 'with_metaclass' as the new name for 'string_types'.

Closing. Ticket merged into #779.