Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion storage3/_async/file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async def create_signed_urls(
"""
json = {"paths": paths, "expiresIn": str(expires_in)}
if options.get("download"):
json.update({"download": options["download"]})
json.update({"download": options.get("download")})

response = await self._request(
"POST",
Expand Down
2 changes: 1 addition & 1 deletion storage3/_sync/file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def create_signed_urls(
"""
json = {"paths": paths, "expiresIn": str(expires_in)}
if options.get("download"):
json.update({"download": options["download"]})
json.update({"download": options.get("download")})

response = self._request(
"POST",
Expand Down
2 changes: 1 addition & 1 deletion storage3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class URLOptions(TypedDict, total=False):
transform: TransformOptions


class CreateSignedURLsOptions(TypedDict):
class CreateSignedURLsOptions(TypedDict, total=False):
download: Union[str, bool]


Expand Down