diff --git a/pyproject.toml b/pyproject.toml index 0cd3cd2bc9..c1a9ba64b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -226,9 +226,8 @@ extend-select = [ "W", # pycodestyle warnings ] ignore = [ - "ANN003", - "ANN101", - "ANN102", + "ANN101", # deprecated + "ANN102", # deprecated "ANN401", "PT004", # deprecated "PT005", # deprecated diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index bb9fda65a1..2c17fbf79d 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -159,7 +159,7 @@ def is_negative_slice(idx: Any) -> bool: @st.composite # type: ignore[misc] -def basic_indices(draw: st.DrawFn, *, shape: tuple[int], **kwargs) -> Any: # type: ignore[no-untyped-def] +def basic_indices(draw: st.DrawFn, *, shape: tuple[int], **kwargs: Any) -> Any: """Basic indices without unsupported negative slices.""" return draw( npst.basic_indices(shape=shape, **kwargs).filter(