rope
rope copied to clipboard
a python refactoring library
**Describe the bug** In `rope/base/ast.py`, it’s expected that `ast._const_node_type_names` exists. Otherwise, the library falls back to a backport intended for Python 3.7 and older, and this assumption is confirmed with...
**Describe the bug** It seems like that rope doesn't pick up my virtual env and instead use system python when populating autoimport.db **Editor information (please complete the following information):** -...
# Description - python 3.13 removed `collections/abc.py`, update the `deprecated_aliases` variable for this case - python 3.13 raises `PermissionError` earlier on initialization of the `iterdir()` instead of just on `next()`...
# Description Fixes broken behavior with specific f-strings Fixes #807
**Describe the bug** Rope throws an exception when an f-string has a # before a {variable} when using extract method For example, this is a valid f-string in python: ```python...
**Is your feature request related to a problem? Please describe.** Rope creates a folder inside the project folder which I think shouldn't be picked up by version control. **Describe the...
# Description Remove 3.8, add 3.12
The following code will trigger an AttributeError: ``` source_code = dedent(""" def foo(l: list): pass """) finder = RawSimilarFinder(source_code) pattern = "${a}" print(list(finder.get_matches(pattern))) ``` ``` Traceback (most recent call last):...
Rename Method allows rename functions using datamodels function names Steps to reproduce the behavior: 1. Code before refactoring: ```python class Soma: def __init__(self, a, b): self.a = a self.b =...
Rename Method allows changing datamodels function names. Steps to reproduce the behavior: 1. Code before refactoring: ```python class Singleton: _instancia = None def __new__(cls): if cls._instancia is None: cls._instancia =...