Skip to content

Commit

Permalink
added type info to timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Apr 5, 2023
1 parent e4feb50 commit e2cb4da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internetarchive/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def download(
on_the_fly: bool = False,
return_responses: bool = False,
no_change_timestamp: bool = False,
timeout: int | float | tuple | None = None,
timeout: int | float | tuple[int, float] | None = None,
**get_item_kwargs,
) -> list[requests.Request | requests.Response]:
r"""Download files from an item.
Expand Down
3 changes: 2 additions & 1 deletion internetarchive/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ def download(self,
exclude_source: str | list[str] | None = None,
stdout: bool = False,
params: Mapping | None = None,
timeout: int | float | tuple | None = None) -> list[Request | Response]:
timeout: int | float | tuple[int, float] | None = None
) -> list[Request | Response]:
"""Download files from an item.
:param files: Only download files matching given file names.
Expand Down

0 comments on commit e2cb4da

Please sign in to comment.