|
20 | 20 | from datetime import timezone |
21 | 21 | import logging |
22 | 22 | import re |
23 | | -from typing import Tuple, TYPE_CHECKING |
| 23 | +from typing import TYPE_CHECKING |
24 | 24 |
|
25 | 25 | from google.cloud.alloydb.connector.connection_info import ConnectionInfo |
26 | 26 | from google.cloud.alloydb.connector.exceptions import RefreshError |
|
40 | 40 | ) |
41 | 41 |
|
42 | 42 |
|
43 | | -def _parse_instance_uri(instance_uri: str) -> Tuple[str, str, str, str]: |
| 43 | +def _parse_instance_uri(instance_uri: str) -> tuple[str, str, str, str]: |
44 | 44 | # should take form "projects/<PROJECT>/locations/<REGION>/clusters/<CLUSTER>/instances/<INSTANCE>" |
45 | 45 | if INSTANCE_URI_REGEX.fullmatch(instance_uri) is None: |
46 | 46 | raise ValueError( |
@@ -69,14 +69,14 @@ class RefreshAheadCache: |
69 | 69 | instance_uri (str): The instance URI of the AlloyDB instance. |
70 | 70 | ex. projects/<PROJECT>/locations/<REGION>/clusters/<CLUSTER>/instances/<INSTANCE> |
71 | 71 | client (AlloyDBClient): Client used to make requests to AlloyDB APIs. |
72 | | - keys (Tuple[rsa.RSAPrivateKey, str]): Private and Public key pair. |
| 72 | + keys (tuple[rsa.RSAPrivateKey, str]): Private and Public key pair. |
73 | 73 | """ |
74 | 74 |
|
75 | 75 | def __init__( |
76 | 76 | self, |
77 | 77 | instance_uri: str, |
78 | 78 | client: AlloyDBClient, |
79 | | - keys: asyncio.Future[Tuple[rsa.RSAPrivateKey, str]], |
| 79 | + keys: asyncio.Future[tuple[rsa.RSAPrivateKey, str]], |
80 | 80 | ) -> None: |
81 | 81 | # validate and parse instance_uri |
82 | 82 | self._project, self._region, self._cluster, self._name = _parse_instance_uri( |
|
0 commit comments