Skip to content

Commit

Permalink
Consistent ignore[arg-type]
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurai-youhei committed Nov 23, 2023
1 parent 5895954 commit 4693085
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions esrally/utils/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,13 @@ def _download_http(url, local_path, expected_size_in_bytes=None, progress_indica
"GET", url, preload_content=False, enforce_content_length=True, retries=10, timeout=urllib3.Timeout(connect=45, read=240)
) as r, open(local_path, "wb") as out_file:
if r.status > 299:
# TODO remove the below ignore when introducing type hints
raise urllib.error.HTTPError(url, r.status, "", None, None) # type: ignore[arg-type]
raise urllib.error.HTTPError(
url,
r.status,
"",
None, # type: ignore[arg-type] # TODO remove the below ignore when introducing type hints
None,
)
try:
size_from_content_header = int(r.getheader("Content-Length", ""))
if expected_size_in_bytes is None:
Expand Down

0 comments on commit 4693085

Please sign in to comment.