Skip to content

_lazy_imports dict is rebuilt on every __getattr__ call #27

@thomaspinder

Description

@thomaspinder

_lazy_imports is defined inside __getattr__, so the dict is reconstructed on every attribute access. Moving it to module level would avoid the rebuild.

No correctness impact since importlib.import_module uses sys.modules caching, but it's a trivial fix.

Affected file: src/impulso/__init__.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions