python-rope / rope

a python refactoring library
GNU Lesser General Public License v3.0
1.96k stars 164 forks source link

Rename refactoring should check whether the target variable exists #779

Open lieryan opened 8 months ago

lieryan commented 8 months ago

The following series of tickets all have the same root cause, rope currently doesn't validate whether the target variable name is currently occupied by another existing variable:

Collecting here into one big ticket since most of them will likely be resolved by the same solution.

Once this ticket is resolved, we'll go through each ticket to verify that those cases are addressed by the solution.