We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9d6c9 commit 24a6230Copy full SHA for 24a6230
google/cloud/sql/connector/connector.py
@@ -23,7 +23,7 @@
23
import socket
24
from threading import Thread
25
from types import TracebackType
26
-from typing import Any, Optional, Union
+from typing import Any, Callable, Optional, Union
27
28
import google.auth
29
from google.auth.credentials import Credentials
@@ -336,7 +336,7 @@ async def connect_async(
336
337
# only accept supported database drivers
338
try:
339
- connector = connect_func[driver]
+ connector: Callable = connect_func[driver] # type: ignore
340
except KeyError:
341
raise KeyError(f"Driver '{driver}' is not supported.")
342
0 commit comments