Skip to content

Rename refactoring allow the use of Python keywords #698

@jonh-copin

Description

@jonh-copin

Rename refactoring is successfully executed using any Python keyword in B.text.

Steps to reproduce the behavior:

  1. Code before refactoring:
class B:

    def a(self) -> None:
        text = 'hello'

  1. Apply the Rename refactoring to the variable "text"

  2. Expected to Rope emit an error due to the use of a Python keyword.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected or incorrect user-visible behaviorrename-refactor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions