rope icon indicating copy to clipboard operation
rope copied to clipboard

a python refactoring library

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

Hi, does anyone know why this test might be failing? ``` ====================================================================== FAIL: test_search_submodule (ropetest.contrib.autoimporttest.AutoImportTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/guix-build-python-rope-1.1.1.drv-0/rope-1.1.1/ropetest/contrib/autoimporttest.py", line 121, in test_search_submodule self.assertIn(import_statement, self.importer.search("env", exact_match=True))...

bug
affected-version:1.1

``` class B: pass class C(object): var: 'B' = 1 def foo(self, arg: "B"): self.var: 'List[B]' = [arg] var: "Optional[B]" = arg ``` Renaming `B` should rename the variables used...

rename-refactor
affected-version:0.19

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ``` class A: def __init__(self): pass...

bug
rename-refactor

**Describe the bug** Renaming a python class with `rope.refactor.rename` does not update the import statement in other files of the project. **To Reproduce** Steps to reproduce the behavior: 1. Code...

bug
rename-refactor
affected-version:0.23

**Describe the bug** Currently, type inference are kinda dodgy when analyzing code containing comprehensions. **To Reproduce** Steps to reproduce the behavior: 1. Code to reproduce: ``` def test_xxx(self): code =...

bug

**Describe the bug** If code has a special string (see code below) the rope falls with error. **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ``` aa...

bug

**Describe the bug** Inlining expression containing string constant into f-string should take into consideration the surrounding f-string's quote. **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ```...

bug
inline-refactor
affected-version:0.20

**Describe the bug** Incorrect inline refactoring with dictionary expansion. **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ``` def main(arguments): foobar(workspace, **arguments[0]) def foobar(workspace, document_uri, range): return...

bug
inline-refactor
affected-version:0.20

**Describe the bug** Extracting generator comprehension may produce invalid code after extraction. **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ``` foo = sum(x for x in...

bug
good first issue
affected-version:0.20