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 18
18
import abc
19
19
from enum import Enum
20
20
import os
21
+ from typing import List
21
22
22
23
from google .auth import _helpers , environment_vars
23
24
from google .auth import exceptions
27
28
from google .auth ._refresh_worker import RefreshThreadManager
28
29
29
30
DEFAULT_UNIVERSE_DOMAIN = "googleapis.com"
30
- NO_OP_TRUST_BOUNDARY_LOCATIONS : list [str ] = []
31
+ NO_OP_TRUST_BOUNDARY_LOCATIONS : List [str ] = []
31
32
NO_OP_TRUST_BOUNDARY_ENCODED_LOCATIONS = "0x0"
32
33
33
34
@@ -434,13 +435,12 @@ def _build_trust_boundary_lookup_url(self):
434
435
def _has_no_op_trust_boundary (self ):
435
436
# A no-op trust boundary is indicated by encodedLocations being "0x0".
436
437
# 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" )
440
442
== NO_OP_TRUST_BOUNDARY_ENCODED_LOCATIONS
441
- ):
442
- return True
443
- return False
443
+ )
444
444
445
445
446
446
class AnonymousCredentials (Credentials ):
You can’t perform that action at this time.
0 commit comments