Skip to content

Ujson import doesn't work #26

Open
@CuboidRaptor

Description

Code I used: (reproduce)

import lazy_import
ujson = lazy_import.lazy_module("ujson")
print(dir(ujson))
# Returns ['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
ujson.dump()
# AttributeError

Ujson when lazy imported is basically blank. This works with many other libraries, just not ujson.
Lazy_import version 0.2.2, Windows 10, Python 3.11.4

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