From 6b09f8751d0e129f7a6fa4664ab2ce91fd8c3318 Mon Sep 17 00:00:00 2001 From: Koncopd Date: Tue, 30 Jul 2024 12:03:13 +0200 Subject: [PATCH] restore ruff changes after rebase --- lamindb/core/storage/_anndata_accessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lamindb/core/storage/_anndata_accessor.py b/lamindb/core/storage/_anndata_accessor.py index 07a6bff0b..c2ea32e51 100644 --- a/lamindb/core/storage/_anndata_accessor.py +++ b/lamindb/core/storage/_anndata_accessor.py @@ -279,7 +279,7 @@ def keys(storage: h5py.File): StorageTypes.append(zarr.Group) @registry.register_open("zarr") - def open(filepath: UPathStr, mode: Literal["r", "r+", "a", "w", "w-"] = "r"): # noqa + def open(filepath: UPathStr, mode: Literal["r", "r+", "a", "w", "w-"] = "r"): assert mode in {"r", "r+", "a", "w", "w-"}, f"Unknown mode {mode}!" # noqa: S101 fs, file_path_str = infer_filesystem(filepath) @@ -300,7 +300,7 @@ def read_dataframe(elem: Union[zarr.Array, zarr.Group]): # noqa return read_elem(elem) @registry.register("zarr") - def safer_read_partial(elem, indices): # noqa + def safer_read_partial(elem, indices): encoding_type = get_spec(elem).encoding_type if encoding_type == "": if isinstance(elem, zarr.Array): @@ -333,7 +333,7 @@ def safer_read_partial(elem, indices): # noqa # this is needed because accessing zarr.Group.keys() directly is very slow @registry.register("zarr") - def keys(storage: zarr.Group): # noqa + def keys(storage: zarr.Group): paths = storage._store.keys() attrs_keys: dict[str, list] = {}