|
21 | 21 | import struct |
22 | 22 | from threading import Thread |
23 | 23 | from types import TracebackType |
24 | | -from typing import Any, Dict, Optional, Type, TYPE_CHECKING, Union |
| 24 | +from typing import Any, Optional, TYPE_CHECKING, Union |
25 | 25 |
|
26 | 26 | from google.auth import default |
27 | 27 | from google.auth.credentials import TokenState |
@@ -87,7 +87,7 @@ def __init__( |
87 | 87 | self._loop: asyncio.AbstractEventLoop = asyncio.new_event_loop() |
88 | 88 | self._thread = Thread(target=self._loop.run_forever, daemon=True) |
89 | 89 | self._thread.start() |
90 | | - self._cache: Dict[str, Union[RefreshAheadCache, LazyRefreshCache]] = {} |
| 90 | + self._cache: dict[str, Union[RefreshAheadCache, LazyRefreshCache]] = {} |
91 | 91 | # initialize default params |
92 | 92 | self._quota_project = quota_project |
93 | 93 | self._alloydb_api_endpoint = alloydb_api_endpoint |
@@ -355,7 +355,7 @@ def __enter__(self) -> "Connector": |
355 | 355 |
|
356 | 356 | def __exit__( |
357 | 357 | self, |
358 | | - exc_type: Optional[Type[BaseException]], |
| 358 | + exc_type: Optional[type[BaseException]], |
359 | 359 | exc_val: Optional[BaseException], |
360 | 360 | exc_tb: Optional[TracebackType], |
361 | 361 | ) -> None: |
|
0 commit comments