Skip to content

Commit 5e4dcd8

Browse files
committed
reformat stubs and fix flake8 E704
1 parent 44dd6de commit 5e4dcd8

2 files changed

Lines changed: 9 additions & 14 deletions

File tree

packages/bigframes/bigframes/functions/function.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ class Udf(Protocol):
162162
"""
163163

164164
@property
165-
def udf_def(self) -> udf_def.BigqueryUdf:
166-
...
165+
def udf_def(self) -> udf_def.BigqueryUdf: ... # noqa: E704
167166

168167

169168
class BigqueryCallableRoutine:

packages/bigframes/bigframes/session/_io/bigquery/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def publish_bq_event(event):
300300

301301

302302
@overload
303-
def start_query_with_client(
303+
def start_query_with_client( # noqa: E704
304304
bq_client: bigquery.Client,
305305
sql: str,
306306
*,
@@ -312,12 +312,11 @@ def start_query_with_client(
312312
query_with_job: Literal[True],
313313
publisher: bigframes.core.events.Publisher,
314314
session=None,
315-
) -> Tuple[google.cloud.bigquery.table.RowIterator, bigquery.QueryJob]:
316-
...
315+
) -> Tuple[google.cloud.bigquery.table.RowIterator, bigquery.QueryJob]: ...
317316

318317

319318
@overload
320-
def start_query_with_client(
319+
def start_query_with_client( # noqa: E704
321320
bq_client: bigquery.Client,
322321
sql: str,
323322
*,
@@ -329,12 +328,11 @@ def start_query_with_client(
329328
query_with_job: Literal[False],
330329
publisher: bigframes.core.events.Publisher,
331330
session=None,
332-
) -> Tuple[google.cloud.bigquery.table.RowIterator, Optional[bigquery.QueryJob]]:
333-
...
331+
) -> Tuple[google.cloud.bigquery.table.RowIterator, Optional[bigquery.QueryJob]]: ...
334332

335333

336334
@overload
337-
def start_query_with_client(
335+
def start_query_with_client( # noqa: E704
338336
bq_client: bigquery.Client,
339337
sql: str,
340338
*,
@@ -347,12 +345,11 @@ def start_query_with_client(
347345
job_retry: google.api_core.retry.Retry,
348346
publisher: bigframes.core.events.Publisher,
349347
session=None,
350-
) -> Tuple[google.cloud.bigquery.table.RowIterator, bigquery.QueryJob]:
351-
...
348+
) -> Tuple[google.cloud.bigquery.table.RowIterator, bigquery.QueryJob]: ...
352349

353350

354351
@overload
355-
def start_query_with_client(
352+
def start_query_with_client( # noqa: E704
356353
bq_client: bigquery.Client,
357354
sql: str,
358355
*,
@@ -365,8 +362,7 @@ def start_query_with_client(
365362
job_retry: google.api_core.retry.Retry,
366363
publisher: bigframes.core.events.Publisher,
367364
session=None,
368-
) -> Tuple[google.cloud.bigquery.table.RowIterator, Optional[bigquery.QueryJob]]:
369-
...
365+
) -> Tuple[google.cloud.bigquery.table.RowIterator, Optional[bigquery.QueryJob]]: ...
370366

371367

372368
def start_query_with_client(

0 commit comments

Comments
 (0)