Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow outside-module imports in lazy_loader.attach_stub #52

Copy link
Copy link
Open
@lagru

Description

@lagru
Issue body actions

In scikit-image/scikit-image#7007 we have run into https://github.com/scientific-python/lazy_loader/blob/2334bd279d40e0dadd3af48fe4ec494d3ce7f47d/lazy_loader/__init__.py#L204-L206

while trying to apply lazy_loader.attach_stub to skimage.morphology. That submodule tries to import and expose label from skimage.measure again as a public API function. We can workaround this by just making this import one level-deeper in a submodule, e.g. skimage.morphology._util.

However, I was wondering if this limitation is artificial and could be removed or if this constraint prevents other problems for lazy_loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.