Skip to content

Commit 930922c

Browse files
committed
dask accessor is now always loaded
1 parent 85148d7 commit 930922c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/spatialdata/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from importlib.metadata import version
55
from typing import TYPE_CHECKING, Any
66

7+
import spatialdata.models._accessor # noqa: F401
8+
79
__version__ = version("spatialdata")
810

911
_submodules = {
@@ -129,15 +131,8 @@
129131
"settings",
130132
]
131133

132-
_accessor_loaded = False
133-
134134

135135
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-
141136
if name in _submodules:
142137
return importlib.import_module(f"spatialdata.{name}")
143138
if name in _LAZY_IMPORTS:

0 commit comments

Comments
 (0)