Skip to content

Commit 1141883

Browse files
committed
add __getattr__ caching in __init__.py
1 parent c052a49 commit 1141883

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spatialdata_io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __getattr__(name: str) -> Any:
3535
module_path = _LAZY_IMPORTS[name]
3636
mod = import_module(module_path)
3737
val = getattr(mod, name)
38+
globals()[name] = val
3839
return val
3940
else:
4041
try:

0 commit comments

Comments
 (0)