Skip to content

goto-definition doesn't work in specific case #26

@dschneiderch

Description

@dschneiderch

it doesn't find the function definition if I use
from src.data import *
to import all functions of all files in the directory src/data/

My folder structure:
project root
-src/
--init.py
--data/
----import_functions.py
----preprocess_functions.py
----init.py

I find importing each file tedious and would like to import all of them at once by including
__all__ = ["import_functions","preprocess_functions.py"] in src/data/init.py

If I use from src.data import import_functions then I can use goto-definition for any function in import_functions.py

Thanks for your work on the wonderful package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions