Skip to content

Commit e72894a

Browse files
Enforce ruff/flake8-annotations rule ANN003
ANN003 Missing type annotation
1 parent 1131253 commit e72894a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,8 @@ extend-select = [
226226
"W", # pycodestyle warnings
227227
]
228228
ignore = [
229-
"ANN003",
230-
"ANN101",
231-
"ANN102",
229+
"ANN101", # deprecated
230+
"ANN102", # deprecated
232231
"ANN401",
233232
"PT004", # deprecated
234233
"PT005", # deprecated

src/zarr/testing/strategies.py

+1-1
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)