Skip to content

Commit aea6d3d

Browse files
committed
fix(verify): satisfy mypy no-any-return on Commons API response
1 parent bc198ad commit aea6d3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎app/verify/wikipedia_image_backfill.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def query(self, host: str, params: dict[str, str]) -> dict[str, Any]:
178178
f"https://{host}/w/api.php", params={"action": "query", "format": "json", **params}
179179
)
180180
response.raise_for_status()
181-
return response.json()
181+
data: dict[str, Any] = response.json()
182+
return data
182183

183184

184185
def inspect(url: str, fetcher: CommonsFetcher, name: str = "") -> dict[str, str]:

0 commit comments

Comments
 (0)