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.