Skip to content

Commit

Permalink
Fix argument ordering and type of bucket and object (#15738)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvanrossum committed May 9, 2021
1 parent 00336ad commit 3711a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/providers/google/cloud/hooks/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def rewrite(

def download(
self,
bucket_name: str,
object_name: str,
bucket_name: Optional[str],
filename: Optional[str] = None,
chunk_size: Optional[int] = None,
timeout: Optional[int] = DEFAULT_TIMEOUT,
Expand All @@ -280,10 +280,10 @@ def download(
returns the location. For file sizes that exceed the available memory it is recommended
to write to a file.
:param object_name: The object to fetch.
:type object_name: str
:param bucket_name: The bucket to fetch from.
:type bucket_name: str
:param object_name: The object to fetch.
:type object_name: str
:param filename: If set, a local file path where the file should be written to.
:type filename: str
:param chunk_size: Blob chunk size.
Expand Down

0 comments on commit 3711a29

Please sign in to comment.