From 5344247244902cc78f111dfbbfe99c9d30fb3d56 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 2 Nov 2024 01:15:22 -0400 Subject: [PATCH] download_file is fully annotated --- .../azure/storage/fileshare/_file_client.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py index fd1127fa1381c..cb9c7ad43fb76 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py @@ -790,11 +790,10 @@ def abort_copy(self, copy_id: Union[str, FileProperties], **kwargs: Any) -> None @distributed_trace def download_file( - self, offset=None, # type: Optional[int] - length=None, # type: Optional[int] - **kwargs # type: Any - ): - # type: (...) -> StorageStreamDownloader + self, offset: Optional[int] = None, + length: Optional[int] = None, + **kwargs: Any + ) -> StorageStreamDownloader: """Downloads a file to the StorageStreamDownloader. The readall() method must be used to read all the content or readinto() must be used to download the file into a stream. Using chunks() returns an iterator which allows the user to iterate over the content in chunks.