Skip to content

Commit 3711a29

Browse files
authored
Fix argument ordering and type of bucket and object (#15738)
1 parent 00336ad commit 3711a29

File tree

1 file changed

+3
-3
lines changed
  • airflow/providers/google/cloud/hooks

1 file changed

+3
-3
lines changed

airflow/providers/google/cloud/hooks/gcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def rewrite(
265265

266266
def download(
267267
self,
268+
bucket_name: str,
268269
object_name: str,
269-
bucket_name: Optional[str],
270270
filename: Optional[str] = None,
271271
chunk_size: Optional[int] = None,
272272
timeout: Optional[int] = DEFAULT_TIMEOUT,
@@ -280,10 +280,10 @@ def download(
280280
returns the location. For file sizes that exceed the available memory it is recommended
281281
to write to a file.
282282
283-
:param object_name: The object to fetch.
284-
:type object_name: str
285283
:param bucket_name: The bucket to fetch from.
286284
:type bucket_name: str
285+
:param object_name: The object to fetch.
286+
:type object_name: str
287287
:param filename: If set, a local file path where the file should be written to.
288288
:type filename: str
289289
:param chunk_size: Blob chunk size.

0 commit comments

Comments
 (0)