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

When extracting a variable or method, we have the option of extracting Similar code (parameter similar in the method - [get_changes(self, extracted_name, _**similar=False**_, global_=False)](https://github.com/python-rope/rope/blob/7232b26878c76040865358190f925e4c6be15e8d/rope/refactor/extract.py#L53)). Thanks for this great feature. Now,...

question

For a random module ``` #!python >>> [proposal for proposal in codeassist.code_assist(proj, "import os\nos.", 13\ ) if proposal.name in ['os2', 'ce', 'riscos', 'posix', 'nt']] [os2 (imported, module), ce (imported, module),...

I'm using rope inside SublimeRope and have a project that consists of several namespaces, all available on python path. While rope properly indexes those, it cannot resolve ImportedModule nodes pointing...

Add docstrings to search results. This would be per-name, which causes the following issues: 1. Parsing for both import and ast needs docstring support - import should be trivial and...

autoimport

Minor type hint improvements

Python’s instantiation process starts with a call to the class constructor, which triggers the instance creator, \_\_new\_\_(), to create a new empty object. The process continues with the instance initializer,...

enhancement
inline-refactor

**Is your feature request related to a problem? Please describe.** I work in python projects that use poetry for dependency management, and use a `src/` folder for the repository. When...

# Motivation Say you have a large environment with a package (IE: Pytorch) that you mark as a dependency. While you plan to use pytorch, its dependents consume a lot...

autoimport

Steps to reproduce the behavior: 1. Code before refactoring: ``` class Descriptor: def __get__(self, instance, owner): return 40 ``` 2. Apply the Inline Method refactoring to the method \_\_get\_\_. 3....

bug
inline-refactor

# Description Given the following piece of code: ```python def xyz(self): print(f'{self.abc}') return self.abc ``` If I try to Rename attribute/property `abc`, the `abc` in the return statement is correctly...