Skip to content

Commit

Permalink
imports psycopg2 extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Aug 14, 2024
1 parent 84a4400 commit a39184e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/pg_replication/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dataclasses import dataclass, field

import psycopg2
from psycopg2.extensions import cursor
from psycopg2.extensions import cursor, connection
from psycopg2.extras import (
LogicalReplicationConnection,
ReplicationCursor,
Expand Down Expand Up @@ -476,7 +476,7 @@ def _import_sql_table_resource() -> None:
def _get_conn(
credentials: ConnectionStringCredentials,
connection_factory: Optional[Any] = None,
) -> Union[psycopg2.extensions.connection, LogicalReplicationConnection]:
) -> Union[connection, LogicalReplicationConnection]:
"""Returns a psycopg2 connection to interact with postgres."""
return psycopg2.connect( # type: ignore[no-any-return]
database=credentials.database,
Expand Down

0 comments on commit a39184e

Please sign in to comment.