diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff350b2a..5b9195b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: hooks: - id: prettier - repo: https://github.com/asottile/blacken-docs - rev: 1.16.0 + rev: 1.18.0 hooks: - id: blacken-docs - repo: https://github.com/PyCQA/isort @@ -23,7 +23,7 @@ repos: hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy additional_dependencies: [numpy, types-PyYAML] @@ -59,7 +59,7 @@ repos: - --remove-unused-variable - --ignore-init-module-imports - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.1.0 hooks: - id: flake8 additional_dependencies: diff --git a/src/spatialdata_io/readers/mcmicro.py b/src/spatialdata_io/readers/mcmicro.py index a84121fb..22d521ad 100644 --- a/src/spatialdata_io/readers/mcmicro.py +++ b/src/spatialdata_io/readers/mcmicro.py @@ -258,7 +258,7 @@ def _create_anndata( obs=table.drop(columns=var + coords), var=markers, obsm={"spatial": table[coords].to_numpy()}, - dtype=np.float_, + dtype=float, ) adata.obs["region"] = pd.Categorical([region_value] * len(adata)) return adata, region_value