Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving class doesn't move class decorator. #439

Closed
climbus opened this issue Oct 19, 2021 · 0 comments · Fixed by #472
Closed

Moving class doesn't move class decorator. #439

climbus opened this issue Oct 19, 2021 · 0 comments · Fixed by #472
Labels
affected-version:0.21 bug Unexpected or incorrect user-visible behavior move-refactor
Milestone

Comments

@climbus
Copy link
Contributor

climbus commented Oct 19, 2021

Moving class doesn't move class decorator.

Steps to reproduce the behavior:

  1. Code before refactoring:

mod1.py

@dataclass
class AClass:
    pass

class BClass:
    pass
  1. Move AClass to mod2.py

  2. Expected code after refactoring:
    mod1.py

class BClass:
    pass

mod2.py

@dataclass
class AClass:
    pass
  1. Describe the error or unexpected result that you are getting
    mod1.py
@dataclass
class BClass:
    pass

mod2.py

class AClass:
    pass

Editor information (please complete the following information):

  • Project Python version: 3.8.8
  • Rope Python version: 3.8.8
  • Rope version: 0.21.0
  • Text editor/IDE and version: reproduced in tests
@climbus climbus added the bug Unexpected or incorrect user-visible behavior label Oct 19, 2021
@lieryan lieryan added this to the 0.24.0 milestone Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affected-version:0.21 bug Unexpected or incorrect user-visible behavior move-refactor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants