Skip to content

Commit ac288eb

Browse files
committed
fix: resolve ruff linter errors in psycopg system tests
1 parent 8eb3f09 commit ac288eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/system/test_psycopg_connection.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
"""
16+
from __future__ import annotations
1617

1718
import asyncio
1819
from datetime import datetime
1920
import os
20-
from typing import Union
2121

2222
import pytest
2323
import sqlalchemy
@@ -34,7 +34,7 @@ def create_sqlalchemy_engine(
3434
db: str,
3535
ip_type: str = "public",
3636
refresh_strategy: str = "background",
37-
resolver: Union[type[DefaultResolver], type[DnsResolver]] = DefaultResolver,
37+
resolver: type[DefaultResolver | DnsResolver] = DefaultResolver,
3838
) -> tuple[sqlalchemy.engine.Engine, Connector]:
3939
"""Creates a connection pool for a Cloud SQL instance and returns the pool
4040
and the connector.

0 commit comments

Comments
 (0)