Skip to content

Commit 924c0af

Browse files
committed
1 parent bedd36f commit 924c0af

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/google-api-core/google/api_core/operations_v1/transports/base.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,17 @@ def __init__(
133133

134134
if credentials_file is not None:
135135
credentials, _ = google.auth.load_credentials_from_file(
136-
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
136+
credentials_file,
137+
scopes=scopes,
138+
quota_project_id=quota_project_id,
139+
default_scopes=self.AUTH_SCOPES,
137140
)
138141

139142
elif credentials is None:
140143
credentials, _ = google.auth.default(
141-
**scopes_kwargs, quota_project_id=quota_project_id
144+
scopes=scopes,
145+
quota_project_id=quota_project_id,
146+
default_scopes=self.AUTH_SCOPES,
142147
)
143148

144149
# If the credentials are service account credentials, then always try to use self signed JWT.

packages/google-api-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ version = { attr = "google.api_core.version.__version__" }
8383
include = ["google*"]
8484

8585
[tool.mypy]
86-
python_version = "3.7"
86+
python_version = "3.14"
8787
namespace_packages = true
8888
ignore_missing_imports = true
8989

0 commit comments

Comments
 (0)