This repository was archived by the owner on Feb 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +24
-15
lines changed
google/cloud/logging_v2/services
config_service_v2/transports
logging_service_v2/transports
metrics_service_v2/transports Expand file tree Collapse file tree 6 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 1- image : us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209
1+ image : us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
22libraries :
33 - id : google-cloud-logging
44 version : 3.13.0
Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ def __init__(
9191 be used for service account credentials.
9292 """
9393
94- scopes_kwargs = {"scopes" : scopes , "default_scopes" : self .AUTH_SCOPES }
95-
9694 # Save the scopes.
9795 self ._scopes = scopes
9896 if not hasattr (self , "_ignore_credentials" ):
@@ -107,11 +105,16 @@ def __init__(
107105
108106 if credentials_file is not None :
109107 credentials , _ = google .auth .load_credentials_from_file (
110- credentials_file , ** scopes_kwargs , quota_project_id = quota_project_id
108+ credentials_file ,
109+ scopes = scopes ,
110+ quota_project_id = quota_project_id ,
111+ default_scopes = self .AUTH_SCOPES ,
111112 )
112113 elif credentials is None and not self ._ignore_credentials :
113114 credentials , _ = google .auth .default (
114- ** scopes_kwargs , quota_project_id = quota_project_id
115+ scopes = scopes ,
116+ quota_project_id = quota_project_id ,
117+ default_scopes = self .AUTH_SCOPES ,
115118 )
116119 # Don't apply audience if the credentials file passed from user.
117120 if hasattr (credentials , "with_gdch_audience" ):
Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ def __init__(
9191 be used for service account credentials.
9292 """
9393
94- scopes_kwargs = {"scopes" : scopes , "default_scopes" : self .AUTH_SCOPES }
95-
9694 # Save the scopes.
9795 self ._scopes = scopes
9896 if not hasattr (self , "_ignore_credentials" ):
@@ -107,11 +105,16 @@ def __init__(
107105
108106 if credentials_file is not None :
109107 credentials , _ = google .auth .load_credentials_from_file (
110- credentials_file , ** scopes_kwargs , quota_project_id = quota_project_id
108+ credentials_file ,
109+ scopes = scopes ,
110+ quota_project_id = quota_project_id ,
111+ default_scopes = self .AUTH_SCOPES ,
111112 )
112113 elif credentials is None and not self ._ignore_credentials :
113114 credentials , _ = google .auth .default (
114- ** scopes_kwargs , quota_project_id = quota_project_id
115+ scopes = scopes ,
116+ quota_project_id = quota_project_id ,
117+ default_scopes = self .AUTH_SCOPES ,
115118 )
116119 # Don't apply audience if the credentials file passed from user.
117120 if hasattr (credentials , "with_gdch_audience" ):
Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ def __init__(
9191 be used for service account credentials.
9292 """
9393
94- scopes_kwargs = {"scopes" : scopes , "default_scopes" : self .AUTH_SCOPES }
95-
9694 # Save the scopes.
9795 self ._scopes = scopes
9896 if not hasattr (self , "_ignore_credentials" ):
@@ -107,11 +105,16 @@ def __init__(
107105
108106 if credentials_file is not None :
109107 credentials , _ = google .auth .load_credentials_from_file (
110- credentials_file , ** scopes_kwargs , quota_project_id = quota_project_id
108+ credentials_file ,
109+ scopes = scopes ,
110+ quota_project_id = quota_project_id ,
111+ default_scopes = self .AUTH_SCOPES ,
111112 )
112113 elif credentials is None and not self ._ignore_credentials :
113114 credentials , _ = google .auth .default (
114- ** scopes_kwargs , quota_project_id = quota_project_id
115+ scopes = scopes ,
116+ quota_project_id = quota_project_id ,
117+ default_scopes = self .AUTH_SCOPES ,
115118 )
116119 # Don't apply audience if the credentials file passed from user.
117120 if hasattr (credentials , "with_gdch_audience" ):
Original file line number Diff line number Diff line change 11[mypy]
2- python_version = 3.7
2+ python_version = 3.14
33namespace_packages = True
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def lint(session):
120120 session .run ("flake8" , "google" , "tests" )
121121
122122
123- @nox .session (python = DEFAULT_PYTHON_VERSION )
123+ @nox .session (python = "3.14" )
124124def blacken (session ):
125125 """Run black. Format code to uniform standard."""
126126 session .install (BLACK_VERSION )
You can’t perform that action at this time.
0 commit comments