Skip to content

Commit

Permalink
Enforce ruff/flake8-annotations rule ANN003 (zarr-developers#2388)
Browse files Browse the repository at this point in the history
ANN003 Missing type annotation

Co-authored-by: Joe Hamman <[email protected]>
  • Loading branch information
DimitriPapadopoulos and jhamman authored Oct 17, 2024
1 parent de3d061 commit e914c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,8 @@ extend-select = [
"W", # pycodestyle warnings
]
ignore = [
"ANN003",
"ANN101",
"ANN102",
"ANN101", # deprecated
"ANN102", # deprecated
"ANN401",
"PT004", # deprecated
"PT005", # deprecated
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/testing/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e914c5c

Please sign in to comment.