Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jan 12, 2024
1 parent c8633ad commit ecde969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/alloydb/connector/async_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(
# check if AsyncConnector is being initialized with event loop running
# Otherwise we will lazy init keys
try:
self._keys = asyncio.create_task(generate_keys())
self._keys: Optional[asyncio.Task] = asyncio.create_task(generate_keys())
except RuntimeError:
self._keys = None
self._client: Optional[AlloyDBClient] = None
Expand Down Expand Up @@ -97,7 +97,7 @@ async def connect(
connection: A DBAPI connection to the specified AlloyDB instance.
"""
if self._keys is None:
self._keys = asyncio.create_task(generate_keys)
self._keys = asyncio.create_task(generate_keys())
if self._client is None:
# lazy init client as it has to be initialized in async context
self._client = AlloyDBClient(
Expand Down

0 comments on commit ecde969

Please sign in to comment.