Skip to content

Commit 8cdca3c

Browse files
Merge branch 'main' into patch-1
2 parents bf4d08d + 3f45056 commit 8cdca3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/squidpy/gr/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
from collections.abc import Hashable, Iterable, Sequence
66
from contextlib import contextmanager
7+
from importlib.metadata import version
78
from typing import TYPE_CHECKING, Any
89

9-
import anndata
1010
import numpy as np
1111
import pandas as pd
1212
from anndata import AnnData
@@ -20,7 +20,7 @@
2020
from squidpy._docs import d
2121
from squidpy._utils import NDArrayA, _unique_order_preserving
2222

23-
CAN_USE_SPARSE_ARRAY = Version(anndata.__version__) >= Version("0.11.0rc1")
23+
CAN_USE_SPARSE_ARRAY = Version(version("anndata")) >= Version("0.11.0rc1")
2424
if CAN_USE_SPARSE_ARRAY:
2525
from anndata._core.views import ArrayView
2626
from anndata._core.views import SparseCSCMatrixView as SparseCSCView

0 commit comments

Comments
 (0)