From bbec36b3313b3693ab63f2b97576f4efd3998f48 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Thu, 11 Dec 2025 16:21:25 +0100 Subject: [PATCH 1/8] remove pytest pin --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 68f3b97811..3f3c674f07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,8 +73,7 @@ cli = ["typer"] # Development extras test = [ "coverage>=7.10", - # Pin possibly due to https://github.com/pytest-dev/pytest-cov/issues/693 - "pytest<8.4", + "pytest", "pytest-asyncio<1.2.0", "pytest-cov", "pytest-accept", From 8a01d9c9237ad34441ba84e0e55782c6c91850c7 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Dec 2025 15:51:00 +0100 Subject: [PATCH 2/8] remove pytest-asyncio upper bound --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3f3c674f07..e2e692632d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ cli = ["typer"] test = [ "coverage>=7.10", "pytest", - "pytest-asyncio<1.2.0", + "pytest-asyncio", "pytest-cov", "pytest-accept", "rich", From f3b0262a71c0f7b052ce9681cc68e621e5929e7e Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Dec 2025 15:55:24 +0100 Subject: [PATCH 3/8] update changelog --- changes/3619.misc.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/3619.misc.md diff --git a/changes/3619.misc.md b/changes/3619.misc.md new file mode 100644 index 0000000000..8c36e473b5 --- /dev/null +++ b/changes/3619.misc.md @@ -0,0 +1 @@ +Remove upper bounds on `pytest` and `pytest-asyncio` test dependencies. \ No newline at end of file From 9d6ac6c486b1ea96f019bed06ea5cac9d387a939 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Dec 2025 15:59:41 +0100 Subject: [PATCH 4/8] move type: ignores around to pass pre-commit checks --- src/zarr/testing/strategies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index 5eb17214fe..84538bdf8e 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -352,7 +352,7 @@ def basic_indices( allow_ellipsis: bool = True, ) -> Any: """Basic indices without unsupported negative slices.""" - strategy = npst.basic_indices( + strategy = npst.basic_indices( # type: ignore[call-overload] shape=shape, min_dims=min_dims, max_dims=max_dims, @@ -362,7 +362,7 @@ def basic_indices( lambda idxr: ( not ( is_negative_slice(idxr) - or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) # type: ignore[redundant-expr] + or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) ) ) ) From 7e2bb18f26e4cc8e536537f0f7f2a872073c4319 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Dec 2025 16:03:42 +0100 Subject: [PATCH 5/8] bump typing-extensions to the minimum required by pytest-asyncio --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e2e692632d..99b142472f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ 'numpy>=1.26', 'numcodecs>=0.14', 'google-crc32c>=1.5', - 'typing_extensions>=4.9', + 'typing_extensions>=4.12', 'donfig>=0.8', ] From cfe730ae70f6c70c9fc177373c82a8855e05cf5c Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Dec 2025 16:10:26 +0100 Subject: [PATCH 6/8] bump typing_extensions in min deps test --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 99b142472f..d1cb55c6cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -239,7 +239,7 @@ dependencies = [ 'fsspec==2023.10.0', 's3fs==2023.10.0', 'universal_pathlib==0.0.22', - 'typing_extensions==4.9.*', + 'typing_extensions==4.12.*', 'donfig==0.8.*', 'obstore==0.5.*', # test deps From 5bb1dc333dfca14a1887ba2e42b1b5a6d4573ac6 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Wed, 17 Dec 2025 13:12:28 +0100 Subject: [PATCH 7/8] tweak type: ignore declarations --- src/zarr/testing/strategies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index e5173244e0..ac933aecb7 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -354,7 +354,7 @@ def basic_indices( allow_ellipsis: TrueOrFalse = True, ) -> Any: """Basic indices without unsupported negative slices.""" - strategy = npst.basic_indices( # type: ignore[call-overload] + strategy = npst.basic_indices( shape=shape, min_dims=min_dims, max_dims=max_dims, @@ -364,7 +364,7 @@ def basic_indices( lambda idxr: ( not ( is_negative_slice(idxr) - or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) + or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) # type: ignore [redundant-expr] ) ) ) From 988a97f45b37bc54a7e66aa8abb785b8b82ddf39 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Wed, 17 Dec 2025 13:25:10 +0100 Subject: [PATCH 8/8] remove type: ignore --- src/zarr/testing/strategies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index ac933aecb7..330f220b56 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -364,7 +364,7 @@ def basic_indices( lambda idxr: ( not ( is_negative_slice(idxr) - or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) # type: ignore [redundant-expr] + or (isinstance(idxr, tuple) and any(is_negative_slice(idx) for idx in idxr)) ) ) )