Skip to content

Commit b255fd1

Browse files
committed
fix: upload returns correct UploadResponse
1 parent c58fbb0 commit b255fd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage3/_async/file_api.py

+1-1
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

+1-1
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)