Skip to content

Commit 96ba2ea

Browse files
weirongw23-msftallenkim0129
authored andcommitted
download_file is fully annotated (Azure#38284)
1 parent 5eedf8b commit 96ba2ea

File tree

1 file changed

+4
-5
lines changed
  • sdk/storage/azure-storage-file-share/azure/storage/fileshare

1 file changed

+4
-5
lines changed

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,10 @@ def abort_copy(self, copy_id: Union[str, FileProperties], **kwargs: Any) -> None
790790

791791
@distributed_trace
792792
def download_file(
793-
self, offset=None, # type: Optional[int]
794-
length=None, # type: Optional[int]
795-
**kwargs # type: Any
796-
):
797-
# type: (...) -> StorageStreamDownloader
793+
self, offset: Optional[int] = None,
794+
length: Optional[int] = None,
795+
**kwargs: Any
796+
) -> StorageStreamDownloader:
798797
"""Downloads a file to the StorageStreamDownloader. The readall() method must
799798
be used to read all the content or readinto() must be used to download the file into
800799
a stream. Using chunks() returns an iterator which allows the user to iterate over the content in chunks.

0 commit comments

Comments
 (0)