Skip to content

Commit

Permalink
chore: update type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Mar 3, 2025
1 parent 4f2fc4c commit f92fd88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/system/test_pg8000_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import os

# [START cloud_sql_connector_postgres_pg8000]
from typing import Union

import pg8000
import sqlalchemy

Expand All @@ -32,7 +34,7 @@ def create_sqlalchemy_engine(
password: str,
db: str,
refresh_strategy: str = "background",
resolver: DefaultResolver | DnsResolver = DefaultResolver,
resolver: Union[DefaultResolver, DnsResolver] = DefaultResolver,
) -> tuple[sqlalchemy.engine.Engine, Connector]:
"""Creates a connection pool for a Cloud SQL instance and returns the pool
and the connector. Callers are responsible for closing the pool and the
Expand Down

0 comments on commit f92fd88

Please sign in to comment.