Skip to content

Commit 77c2b02

Browse files
committed
Reformat bigquery_tools.py (#26622)
1 parent e62f289 commit 77c2b02

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

sdks/python/apache_beam/io/gcp/bigquery_tools.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,17 +1346,18 @@ def convert_row_to_dict(self, row, schema):
13461346

13471347
@staticmethod
13481348
def from_pipeline_options(pipeline_options: PipelineOptions):
1349-
return BigQueryWrapper(client=BigQueryWrapper._bigquery_client(pipeline_options))
1349+
return BigQueryWrapper(
1350+
client=BigQueryWrapper._bigquery_client(pipeline_options))
13501351

13511352
@staticmethod
13521353
def _bigquery_client(pipeline_options: PipelineOptions):
13531354
return bigquery.BigqueryV2(
1354-
http=get_new_http(),
1355-
credentials=auth.get_service_credentials(pipeline_options),
1356-
response_encoding='utf8',
1357-
additional_http_headers={
1358-
"user-agent": "apache-beam-%s" % apache_beam.__version__
1359-
})
1355+
http=get_new_http(),
1356+
credentials=auth.get_service_credentials(pipeline_options),
1357+
response_encoding='utf8',
1358+
additional_http_headers={
1359+
"user-agent": "apache-beam-%s" % apache_beam.__version__
1360+
})
13601361

13611362

13621363
class RowAsDictJsonCoder(coders.Coder):

0 commit comments

Comments
 (0)