Skip to content

Commit 788f6e9

Browse files
fix: avoid global mutation in BigQueryOptions.client_endpoints_override (#1280)
* fix: avoid global mutation in `BigQueryOptions.client_endpoints_override` * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent f91756a commit 788f6e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bigframes/_config/bigquery_options.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
skip_bq_connection_check: bool = False,
9292
*,
9393
ordering_mode: Literal["strict", "partial"] = "strict",
94-
client_endpoints_override: dict = {},
94+
client_endpoints_override: Optional[dict] = None,
9595
):
9696
self._credentials = credentials
9797
self._project = project
@@ -104,6 +104,10 @@ def __init__(
104104
self._session_started = False
105105
# Determines the ordering strictness for the session.
106106
self._ordering_mode = _validate_ordering_mode(ordering_mode)
107+
108+
if client_endpoints_override is None:
109+
client_endpoints_override = {}
110+
107111
self._client_endpoints_override = client_endpoints_override
108112

109113
@property

0 commit comments

Comments
 (0)