Skip to content

Is there a way to refactor and move a variable to a new file and update imports? #832

@himat

Description

@himat

Ex. I want to move foo to a new file a2.py and have the import in b.py auto update to use that new path.
Is this possible?

# a.py

def foo():
    pass
# b.py

from a import foo

def bar():
    return foo()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions