8000 [enhancement] relative imports · Issue #59 · alexpasmantier/pymple.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[enhancement] relative imports #59
Open
@jonathf

Description

@jonathf

I am testing out this plugin, and I am wondering if I am doing things correctly.

I made a tiny project:

pyproject.toml   # ... [tool.setuptools.packages.find]
myproj/
  __init__.py    # from .asdf import A
  asdf.py        # A = 4

I am using oil.nvim and trying to change the name of asdf.py to something else, no refactoring is triggered. If I instead use from myproj.asdf import A in __init__.py, it works as expected.

Should the plugin be able to deal with relative imports, or do the imports have to be absolute for it to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0