Skip to content

Commit e914c5c

Browse files
Enforce ruff/flake8-annotations rule ANN003 (#2388)
ANN003 Missing type annotation Co-authored-by: Joe Hamman <joe@earthmover.io>
1 parent de3d061 commit e914c5c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ extend-select = [
225225
"W", # pycodestyle warnings
226226
]
227227
ignore = [
228-
"ANN003",
229-
"ANN101",
230-
"ANN102",
228+
"ANN101", # deprecated
229+
"ANN102", # deprecated
231230
"ANN401",
232231
"PT004", # deprecated
233232
"PT005", # deprecated

src/zarr/testing/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def is_negative_slice(idx: Any) -> bool:
159159

160160

161161
@st.composite # type: ignore[misc]
162-
def basic_indices(draw: st.DrawFn, *, shape: tuple[int], **kwargs) -> Any: # type: ignore[no-untyped-def]
162+
def basic_indices(draw: st.DrawFn, *, shape: tuple[int], **kwargs: Any) -> Any:
163163
"""Basic indices without unsupported negative slices."""
164164
return draw(
165165
npst.basic_indices(shape=shape, **kwargs).filter(

0 commit comments

Comments
 (0)