Skip to content

lazy_loader.attach_stub confuses submodule and function of the same name #54

@lagru

Description

@lagru

At scikit-image, we are seeing that if a submodule and lazy loaded function have the same name, the module is unexpectedly imported instead. This behavior in the case of rolling_ball can be seen in scikit-image/scikit-image#7021, scikit-image/scikit-image@079962f, failing CI example.

What I find confusing that this does not happen for all jobs, though I haven't figured out a common denominator between the passing and failing group respectively. 🤔

Our approach has been to rename the submodule but this may hint at a deeper issue / limitation / quirk in lazy_loader?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions