From 1fccd6022e016a0bdd89ec6fda77176361f496ef Mon Sep 17 00:00:00 2001 From: giovp Date: Tue, 21 Nov 2023 11:10:50 +0100 Subject: [PATCH] update --- src/squidpy/datasets/_utils.py | 2 +- src/squidpy/tl/_var_by_distance.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/squidpy/datasets/_utils.py b/src/squidpy/datasets/_utils.py index d2e11103..f75829b7 100644 --- a/src/squidpy/datasets/_utils.py +++ b/src/squidpy/datasets/_utils.py @@ -11,7 +11,7 @@ from scanpy import read from scanpy._utils import check_presence_download -PathLike = Union[os.PathLike, str] +PathLike = Union[os.PathLike, str] # type: ignore[type-arg] Function_t = Callable[..., Union[AnnData, Any]] diff --git a/src/squidpy/tl/_var_by_distance.py b/src/squidpy/tl/_var_by_distance.py index c48d11f8..9a1f73c7 100644 --- a/src/squidpy/tl/_var_by_distance.py +++ b/src/squidpy/tl/_var_by_distance.py @@ -80,8 +80,8 @@ def var_by_distance( batch = adata.obs[library_key].unique() categorical_columns.append(library_key) - batch_design_matrices = {} - max_distances = {} + batch_design_matrices: dict[tuple[str | None, str], pd.DataFrame] = {} + max_distances: dict[tuple[str | None, str], float] = {} anchor_col_id = 2 # iterate over slide + anchor combinations (anchor only possible as well)