Skip to content

Commit 821245c

Browse files
authored
fix: suppress lint check for _scopes property (GoogleCloudPlatform#1308)
1 parent 21a38d6 commit 821245c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/sql/connector/refresh_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _downscope_credentials(
104104
scoped_creds = copy.copy(credentials)
105105
# overwrite '_scopes' to down-scope user credentials
106106
# Cloud SDK reference: https://github.com/google-cloud-sdk-unofficial/google-cloud-sdk/blob/93920ccb6d2cce0fe6d1ce841e9e33410551d66b/lib/googlecloudsdk/command_lib/sql/generate_login_token_util.py#L116
107-
scoped_creds._scopes = scopes
107+
scoped_creds._scopes = scopes # type: ignore[attr-defined]
108108
# down-scoped credentials require refresh, are invalid after being re-scoped
109109
request = google.auth.transport.requests.Request()
110110
scoped_creds.refresh(request)

0 commit comments

Comments
 (0)