File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
google/cloud/alloydb/connector Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def __init__(
67
67
# check if AsyncConnector is being initialized with event loop running
68
68
# Otherwise we will lazy init keys
69
69
try :
70
- self ._keys = asyncio .create_task (generate_keys ())
70
+ self ._keys : Optional [ asyncio . Task ] = asyncio .create_task (generate_keys ())
71
71
except RuntimeError :
72
72
self ._keys = None
73
73
self ._client : Optional [AlloyDBClient ] = None
@@ -97,7 +97,7 @@ async def connect(
97
97
connection: A DBAPI connection to the specified AlloyDB instance.
98
98
"""
99
99
if self ._keys is None :
100
- self ._keys = asyncio .create_task (generate_keys )
100
+ self ._keys = asyncio .create_task (generate_keys () )
101
101
if self ._client is None :
102
102
# lazy init client as it has to be initialized in async context
103
103
self ._client = AlloyDBClient (
You can’t perform that action at this time.
0 commit comments