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

Commit 713c83b

Browse files
committed
fix: move warning suppression to top of __init__
1 parent f0e86aa commit 713c83b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

bigframes/__init__.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616

1717
import warnings
1818

19-
from bigframes._config import option_context, options
20-
from bigframes._config.bigquery_options import BigQueryOptions
21-
from bigframes.core.global_session import close_session, get_global_session
22-
import bigframes.enums as enums
23-
import bigframes.exceptions as exceptions
24-
from bigframes.session import connect, Session
25-
from bigframes.version import __version__
26-
2719
# Suppress Python version support warnings from google-cloud libraries.
2820
# These are particularly noisy in Colab which still uses Python 3.10.
2921
warnings.filterwarnings(
@@ -32,6 +24,17 @@
3224
message=".*Google will stop supporting.*Python.*",
3325
)
3426

27+
from bigframes._config import option_context, options # noqa: E402
28+
from bigframes._config.bigquery_options import BigQueryOptions # noqa: E402
29+
from bigframes.core.global_session import ( # noqa: E402
30+
close_session,
31+
get_global_session,
32+
)
33+
import bigframes.enums as enums # noqa: E402
34+
import bigframes.exceptions as exceptions # noqa: E402
35+
from bigframes.session import connect, Session # noqa: E402
36+
from bigframes.version import __version__ # noqa: E402
37+
3538
_MAGIC_NAMES = ["bqsql"]
3639

3740

0 commit comments

Comments
 (0)