rope icon indicating copy to clipboard operation
rope copied to clipboard

a python refactoring library

Results 162 rope issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** Most of the project's public API lacks static type annotations and consequently there is also no `py.typed` marker that signals...

# Description The docs on refactoring mention a `Move` class that doesn't exist in the current codebase. This changes it to `create_move` which does exist and matches the signature of...

### Description The [docs on refactorings](https://rope.readthedocs.io/en/latest/library.html#refactorings) mention a `Move` class to be found somewhere in the `rope.refactor` package and suggest the user instantiate it like so: ```python mover = Move(project,...

**Describe the bug** When using Python 3.12’s new syntax for TypeVar with constraints, rope fails to correctly parse the function definition and raises a MismatchedTokenError. **To Reproduce** Run the code...

bug

# Description added a fallback strategy to _search_in_f_string in occurences.py allowing for backwards compatibility as the initial parsing method will be the same, added unit test case for the bug...

**Describe the bug** When inlining a variable using Rope’s InlineVariable refactor, the library fails to parse an f-string that uses nested single quotes which is introduced with Python 3.12’s new...

bug

# Description This changes autoimport's logic for determining the "package type" (i.e. part of the project, part of site-packages, ...) so that it treats anything found in the project's `ignored_resources`...

**Describe the bug** When Rope's autoimport finds packages that are installed in a virtualenv placed _within_ the project folder (typically named `.venv` by convention), it assigns them the package source...

bug

**Describe the bug** Running Rope's `rope.contrib.findit.find_implementations` on the `a.f()` call in a file like ```python class A: def f(self): return 1 class B(A): def f(self): return 2 a: A =...

bug

## Describe the bug Moving a function from one module to another causes a still-in-use import to be removed ## To Reproduce ### Sample Project Consider the sample project: ```...

bug