Lazy loading doesn't work with automatic submodule detection
The automatic search for submodules in the type hint stub file __init__.pyi
breaks lazy loading for me.
In [1]: import qutil
In [2]: qutil.io
Traceback (most recent call last):
File "C:\Users\Tobias\AppData\Local\Temp\ipykernel_24432\4099925568.py", line 1, in <module>
qutil.io
File "C:\Users\Tobias\Miniconda3\envs\py310\lib\site-packages\lazy_loader\__init__.py", line 88, in __getattr__
raise AttributeError(f"No {package_name} attribute {name}")
AttributeError: No qutil attribute io
Explicit imports a la
__all__ = ['ui', ...]
from . import ui, ...
works.