Skip to content

Commit 5ce9d28

Browse files
emilecaronbusunkim96
authored andcommitted
Use cls parameter instead of class (#341)
Use cls parameter instead of explicit `Credentials` reference to allow subclassing
1 parent 6af3f24 commit 5ce9d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/google-auth/google/oauth2/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def from_authorized_user_info(cls, info, scopes=None):
179179
'Authorized user info was not in the expected format, missing '
180180
'fields {}.'.format(', '.join(missing)))
181181

182-
return Credentials(
182+
return cls(
183183
None, # No access token, must be refreshed.
184184
refresh_token=info['refresh_token'],
185185
token_uri=_GOOGLE_OAUTH2_TOKEN_ENDPOINT,

0 commit comments

Comments
 (0)