Skip to content

Commit

Permalink
Merge pull request #153 from supabase-community/fix/remove-required-key
Browse files Browse the repository at this point in the history
fix: make download key optional
  • Loading branch information
anand2312 authored Sep 28, 2023
2 parents 9b227ce + fc93662 commit d0c47c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit d0c47c7

Please sign in to comment.