We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85148d7 commit 930922cCopy full SHA for 930922c
1 file changed
src/spatialdata/__init__.py
@@ -4,6 +4,8 @@
4
from importlib.metadata import version
5
from typing import TYPE_CHECKING, Any
6
7
+import spatialdata.models._accessor # noqa: F401
8
+
9
__version__ = version("spatialdata")
10
11
_submodules = {
@@ -129,15 +131,8 @@
129
131
"settings",
130
132
]
133
-_accessor_loaded = False
-
134
135
def __getattr__(name: str) -> Any:
136
- global _accessor_loaded
137
- if not _accessor_loaded:
138
- _accessor_loaded = True
139
- import spatialdata.models._accessor # noqa: F401
140
141
if name in _submodules:
142
return importlib.import_module(f"spatialdata.{name}")
143
if name in _LAZY_IMPORTS:
0 commit comments