issues Search Results · repo:isidentical/refactor language:Python
Filter by
45 results
(42 ms)45 results
inisidentical/refactor (press backspace or delete to remove)from marshamallow import schema as marshallow_schema
scope_info.get_definitions( marshallow_schema ) return empty list while: scope_info.get_definitions( schema ) return an
element even though this name ...
matejsp
- Opened on May 25
- #90
Would it be possible for scope info to resolve imports or perhaps have some example in docs how to handle imports.
For example I would like to have a rule that matches: ast.Name or ast.Attribute and map ...
matejsp
- Opened on May 21
- #89
With a simplified runner like:
import ast
import refactor
class Replace(refactor.Rule):
def match(self, node):
if type(node) == ast.Call:
return refactor.Replace(
...
muirdm
- Opened on Jan 23
- #88
Marvin360
- Opened on Aug 27, 2024
- #87
While using RuleCollection, a case of recursive import was annoying and it seemed interesting to be able to define the
rules as strings and add a rudimentary lookup for class definitions within the same ...
MementoRC
- Opened on Jan 13, 2023
- #85
I find that sometimes I want to have a conditional match (like matching a list of names). Do you think that a solution
could be to modify the BaseAction to this:
def match(
self,
...
MementoRC
- 1
- Opened on Jan 12, 2023
- #84
@isidentical Why is this test supposed to pass?:
( \n
__all__ = [ regular ]\n
def regular():\n
pass\n
\n
def _foo():\n
\n
\n
return easy_to_fool_me\n
\n
def ...
MementoRC
- 1
- Opened on Jan 12, 2023
- #83
I found it practical to group Rules into collections in order to resolve some of the MaybeOverlap that I was getting by
having too many chained actions.
For background, I think I use the chained actions ...
MementoRC
- Opened on Jan 8, 2023
- #81
The decorators are not pulled-in with the definition:
INPUT_SOURCE =
@decorate
def test():
test_this()
EXPECTED_SOURCE =
await async_test()
...
MementoRC
- 1
- Opened on Jan 5, 2023
- #79
Would it be helpful to add an hint as to the action that generated an overlap error with:
try:
updated_input = path.execute(previous_tree)
except AccessFailure: ...
MementoRC
- 1
- Opened on Jan 4, 2023
- #78

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.