Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Jul 15, 2024
1 parent 40fe65b commit 297d52a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lamindb/_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def zarr_is_adata(storepath): # type: ignore
if TYPE_CHECKING:
from lamindb_setup.core.types import UPathStr
from mudata import MuData
from tiledbsoma import Collection, Experiment
from tiledbsoma import Collection as SOMACollection
from tiledbsoma import Experiment as SOMAExperiment

from lamindb.core.storage._backed_access import AnnDataAccessor, BackedAccessor

Expand Down Expand Up @@ -862,7 +863,7 @@ def replace(
# docstring handled through attach_func_to_class_method
def backed(
self, is_run_input: bool | None = None
) -> AnnDataAccessor | BackedAccessor | Collection | Experiment:
) -> AnnDataAccessor | BackedAccessor | SOMACollection | SOMAExperiment:
# ignore empty suffix for now
suffixes = (".h5", ".hdf5", ".h5ad", ".zarr", ".tiledbsoma", "")
if self.suffix not in suffixes:
Expand Down

0 comments on commit 297d52a

Please sign in to comment.