Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit dbf8213

Browse files
committed
fix: make download key optional
1 parent bf49d51 commit dbf8213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def create_signed_urls(
187187
"""
188188
json = {"paths": paths, "expiresIn": str(expires_in)}
189189
if options.get("download"):
190-
json.update({"download": options["download"]})
190+
json.update({"download": options.get("download")})
191191

192192
response = await self._request(
193193
"POST",

storage3/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class URLOptions(TypedDict, total=False):
6767
transform: TransformOptions
6868

6969

70-
class CreateSignedURLsOptions(TypedDict):
70+
class CreateSignedURLsOptions(TypedDict, total=False):
7171
download: Union[str, bool]
7272

7373

0 commit comments

Comments
 (0)