Skip to content

Commit ecde969

Browse files
chore: lint
1 parent c8633ad commit ecde969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/alloydb/connector/async_connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
# check if AsyncConnector is being initialized with event loop running
6868
# Otherwise we will lazy init keys
6969
try:
70-
self._keys = asyncio.create_task(generate_keys())
70+
self._keys: Optional[asyncio.Task] = asyncio.create_task(generate_keys())
7171
except RuntimeError:
7272
self._keys = None
7373
self._client: Optional[AlloyDBClient] = None
@@ -97,7 +97,7 @@ async def connect(
9797
connection: A DBAPI connection to the specified AlloyDB instance.
9898
"""
9999
if self._keys is None:
100-
self._keys = asyncio.create_task(generate_keys)
100+
self._keys = asyncio.create_task(generate_keys())
101101
if self._client is None:
102102
# lazy init client as it has to be initialized in async context
103103
self._client = AlloyDBClient(

0 commit comments

Comments
 (0)