Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 618c9ae

Browse files
committed
Fix lint
1 parent 5d329d7 commit 618c9ae

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

bigquery_magics/bigquery.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,12 @@ def _get_graph_schema(
665665
FROM `{query_job.configuration.destination.project}.{dataset_id}`.INFORMATION_SCHEMA.PROPERTY_GRAPHS
666666
WHERE PROPERTY_GRAPH_NAME = @graph_id
667667
"""
668-
job_config = bigquery.QueryJobConfig(query_parameters=[bigquery.ScalarQueryParameter("graph_id", "STRING", graph_id)])
669-
info_schema_results = bq_client.query(info_schema_query, job_config=job_config).to_dataframe()
668+
job_config = bigquery.QueryJobConfig(
669+
query_parameters=[bigquery.ScalarQueryParameter("graph_id", "STRING", graph_id)]
670+
)
671+
info_schema_results = bq_client.query(
672+
info_schema_query, job_config=job_config
673+
).to_dataframe()
670674

671675
if info_schema_results.shape == (1, 1):
672676
return graph_server._convert_schema(info_schema_results.iloc[0, 0])

tests/unit/bigquery/test_bigquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ def test_add_graph_widget_with_schema(monkeypatch):
11571157
query_str = call_args[0]
11581158
assert "INFORMATION_SCHEMA.PROPERTY_GRAPHS" in query_str
11591159
assert "PROPERTY_GRAPH_NAME = @graph_id" in query_str
1160-
1160+
11611161
# Verify query parameter
11621162
job_config = call_kwargs["job_config"]
11631163
param = job_config.query_parameters[0]

0 commit comments

Comments
 (0)