Skip to content

Commit 6f0bad0

Browse files
committed
updates conditional statement to idiomatic python
1 parent 291cfe9 commit 6f0bad0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/bigquery/_pandas_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,9 +971,9 @@ def _download_table_bqstorage(
971971
ArrowSerializationOptions.CompressionCodec(1)
972972
)
973973

974-
retry_policy = None
975-
if timeout is not None:
976-
retry_policy = bq_retry.DEFAULT_RETRY.with_deadline(timeout)
974+
retry_policy = (
975+
bq_retry.DEFAULT_RETRY.with_deadline(timeout) if timeout is not None else None
976+
)
977977

978978
session = bqstorage_client.create_read_session(
979979
parent="projects/{}".format(project_id),

0 commit comments

Comments
 (0)