File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1818import abc
1919from enum import Enum
2020import os
21+ from typing import List
2122
2223from google .auth import _helpers , environment_vars
2324from google .auth import exceptions
2728from google .auth ._refresh_worker import RefreshThreadManager
2829
2930DEFAULT_UNIVERSE_DOMAIN = "googleapis.com"
30- NO_OP_TRUST_BOUNDARY_LOCATIONS : list [str ] = []
31+ NO_OP_TRUST_BOUNDARY_LOCATIONS : List [str ] = []
3132NO_OP_TRUST_BOUNDARY_ENCODED_LOCATIONS = "0x0"
3233
3334
@@ -434,13 +435,12 @@ def _build_trust_boundary_lookup_url(self):
434435 def _has_no_op_trust_boundary (self ):
435436 # A no-op trust boundary is indicated by encodedLocations being "0x0".
436437 # The "locations" list may or may not be present as an empty list.
437- if (
438- self ._trust_boundary is not None
439- and self ._trust_boundary ["encodedLocations" ]
438+ if self ._trust_boundary is None :
439+ return False
440+ return (
441+ self ._trust_boundary .get ("encodedLocations" )
440442 == NO_OP_TRUST_BOUNDARY_ENCODED_LOCATIONS
441- ):
442- return True
443- return False
443+ )
444444
445445
446446class AnonymousCredentials (Credentials ):
You can’t perform that action at this time.
0 commit comments