@@ -83,17 +83,17 @@ def get_subject_token(self, context, request):
8383
8484class _TokenContent (NamedTuple ):
8585 """Models the token content response from file and url internal suppliers.
86- Attributes:
87- content (str): The string content of the file or URL response.
88- location (str): The location the content was retrieved from. This will either be a file location or a URL.
86+ Attributes:
87+ content (str): The string content of the file or URL response.
88+ location (str): The location the content was retrieved from. This will either be a file location or a URL.
8989 """
9090
9191 content : str
9292 location : str
9393
9494
9595class _FileSupplier (SubjectTokenSupplier ):
96- """ Internal implementation of subject token supplier which supports reading a subject token from a file."""
96+ """Internal implementation of subject token supplier which supports reading a subject token from a file."""
9797
9898 def __init__ (self , path , format_type , subject_token_field_name ):
9999 self ._path = path
@@ -114,7 +114,7 @@ def get_subject_token(self, context, request):
114114
115115
116116class _UrlSupplier (SubjectTokenSupplier ):
117- """ Internal implementation of subject token supplier which supports retrieving a subject token by calling a URL endpoint."""
117+ """Internal implementation of subject token supplier which supports retrieving a subject token by calling a URL endpoint."""
118118
119119 def __init__ (self , url , format_type , subject_token_field_name , headers ):
120120 self ._url = url
@@ -261,7 +261,8 @@ class Credentials(external_account.Credentials):
261261 is used.
262262 When the credential configuration is accepted from an
263263 untrusted source, you should validate it before using.
264- Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details."""
264+ Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details.
265+ """
265266
266267 def __init__ (
267268 self ,
@@ -566,8 +567,8 @@ def refresh(self, request):
566567 cert_bytes = self ._get_cert_bytes ()
567568 cert = _agent_identity_utils .parse_certificate (cert_bytes )
568569 if _agent_identity_utils .should_request_bound_token (cert ):
569- cert_fingerprint = _agent_identity_utils . calculate_certificate_fingerprint (
570- cert
570+ cert_fingerprint = (
571+ _agent_identity_utils . calculate_certificate_fingerprint ( cert )
571572 )
572573
573574 self ._refresh_token (request , cert_fingerprint = cert_fingerprint )
0 commit comments