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

Commit eb8034f

Browse files
authored
fix: incorrect upload return type (#327)
1 parent dad65f0 commit eb8034f

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
@@ -489,7 +489,7 @@ async def upload(
489489
path: str,
490490
file: Union[BufferedReader, bytes, FileIO, str, Path],
491491
file_options: Optional[FileOptions] = None,
492-
) -> Response:
492+
) -> UploadResponse:
493493
"""
494494
Uploads a file to an existing bucket.
495495

storage3/_sync/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def upload(
489489
path: str,
490490
file: Union[BufferedReader, bytes, FileIO, str, Path],
491491
file_options: Optional[FileOptions] = None,
492-
) -> Response:
492+
) -> UploadResponse:
493493
"""
494494
Uploads a file to an existing bucket.
495495

0 commit comments

Comments
 (0)