Skip to content

Commit

Permalink
Use qualified import not alias
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Dec 11, 2024
1 parent a94a591 commit 0e24d6d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@
from psycopg import (
AsyncCursor as pg_async_cursor, # pylint: disable=import-self,no-name-in-module
)
from psycopg import (
Connection as pg_connection, # pylint: disable=no-name-in-module
)
from psycopg import (
Cursor as pg_cursor, # pylint: disable=no-name-in-module,import-self
)
Expand Down Expand Up @@ -200,7 +197,7 @@ def _uninstrument(self, **kwargs):
# TODO(owais): check if core dbapi can do this for all dbapi implementations e.g, pymysql and mysql
@staticmethod
def instrument_connection(
connection: pg_connection,
connection: psycopg.Connection,
tracer_provider: typing.Optional[trace_api.TracerProvider] = None,
enable_commenter: bool = False,
commenter_options: dict = None,
Expand Down

0 comments on commit 0e24d6d

Please sign in to comment.