Skip to content

Commit

Permalink
download_file is fully annotated (#38284)
Browse files Browse the repository at this point in the history
  • Loading branch information
weirongw23-msft authored Nov 4, 2024
1 parent c3b096c commit 2b60d8d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2b60d8d

Please sign in to comment.