import types

__all__ = ["attach", "_lazy_import"]

def attach(module_name, submodules=None, submod_attrs=None): ...

class DelayedImportErrorModule(types.ModuleType):
    def __init__(self, frame_data, *args, **kwargs) -> None: ...
    def __getattr__(self, x) -> None: ...

def _lazy_import(fullname) -> types.ModuleType | DelayedImportErrorModule: ...
