From b255fd1ec78452ec786f20bee420fb280ba567f0 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Tue, 24 Dec 2024 23:27:38 +0000 Subject: [PATCH] fix: upload returns correct UploadResponse --- storage3/_async/file_api.py | 2 +- storage3/_sync/file_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage3/_async/file_api.py b/storage3/_async/file_api.py index 8529eca..341990e 100644 --- a/storage3/_async/file_api.py +++ b/storage3/_async/file_api.py @@ -489,7 +489,7 @@ async def upload( path: str, file: Union[BufferedReader, bytes, FileIO, str, Path], file_options: Optional[FileOptions] = None, - ) -> Response: + ) -> UploadResponse: """ Uploads a file to an existing bucket. diff --git a/storage3/_sync/file_api.py b/storage3/_sync/file_api.py index 140c89a..1e68f2d 100644 --- a/storage3/_sync/file_api.py +++ b/storage3/_sync/file_api.py @@ -489,7 +489,7 @@ def upload( path: str, file: Union[BufferedReader, bytes, FileIO, str, Path], file_options: Optional[FileOptions] = None, - ) -> Response: + ) -> UploadResponse: """ Uploads a file to an existing bucket.