Skip to content

Separate modules load simultaneously #22

@michael-0brien

Description

@michael-0brien

In my _init_.py , I have two subpackages that I'm trying to lazy load.

lazy1 = lazy_import.lazy_module("mypkg.sub1")
lazy2 = lazy_import.lazy_module("mypkg.sub2")

In an IDE when I go to load something from lazy1, it also loads lazy2. I would like them to lazily load separately. In each subpackage, I have an _init_.py where I do some relative imports. I'm seeing very odd behavior / crashing in this setup that I think would be fixed if the lazy imports would load separately. ``

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