Skip to content

Commit 6d43911

Browse files
committed
chore: update dependencies to avoid docfx error and updates linting
1 parent f726202 commit 6d43911

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/bigframes/bigframes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# import configuration and types.
2828
# This ensures that when the deeper 'core' modules ask for 'dtypes','options', et. al.,
2929
# they are already defined and available.
30-
import bigframes.dtypes # noqa: E402 # isort: skip
30+
import bigframes.dtypes # noqa: E402 # isort: skip
3131
import bigframes._config # noqa: E402 # isort: skip
3232
from bigframes._config import option_context, options # noqa: E402 # isort: skip
3333

packages/bigframes/bigframes/dtypes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def get_struct_fields(type_: ExpressionType) -> dict[str, Dtype]:
399399

400400
# Local import to break circular dependency with core.backports
401401
import bigframes.core.backports
402+
402403
for field in bigframes.core.backports.pyarrow_struct_type_fields(struct_type):
403404
result[field.name] = arrow_dtype_to_bigframes_dtype(field.type)
404405
return result
@@ -587,6 +588,7 @@ def to_storage_type(
587588

588589
# Local import to break circular dependency with core.backports
589590
import bigframes.core.backports
591+
590592
return pa.struct(
591593
field.with_type(to_storage_type(field.type))
592594
for field in bigframes.core.backports.pyarrow_struct_type_fields(arrow_type)
@@ -603,6 +605,7 @@ def arrow_type_to_literal(
603605

604606
# Local import to break circular dependency with core.backports
605607
import bigframes.core.backports
608+
606609
if pa.types.is_struct(arrow_type):
607610
return {
608611
field.name: arrow_type_to_literal(field.type)
@@ -1011,6 +1014,7 @@ def contains_db_dtypes_json_arrow_type(type_):
10111014
if isinstance(type_, pa.StructType):
10121015
# Local import to break circular dependency with core.backports
10131016
import bigframes.core.backports
1017+
10141018
return any(
10151019
contains_db_dtypes_json_arrow_type(field.type)
10161020
for field in bigframes.core.backports.pyarrow_struct_type_fields(type_)

packages/bigframes/noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ def docfx(session):
517517
"sphinx-sitemap==2.9.0",
518518
"pydata-sphinx-theme==0.13.3",
519519
"myst-parser==0.18.1",
520+
"myst-nb",
520521
"gcp-sphinx-docfx-yaml==3.2.4",
521522
"anywidget",
522523
)

0 commit comments

Comments
 (0)