Skip to content

Commit b040574

Browse files
committed
fix
1 parent 1d93701 commit b040574

File tree

1 file changed

+3
-9
lines changed
  • instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi

1 file changed

+3
-9
lines changed

instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
if TYPE_CHECKING:
6161

62-
class wrapt:
62+
class wrapt: # pylint: disable=invalid-name
6363
class ObjectProxy:
6464
def __init__(self, *args: Any, **kwargs: Any) -> None:
6565
pass
@@ -403,8 +403,6 @@ def __init__(
403403
self,
404404
connection: ConnectionT,
405405
db_api_integration: DatabaseApiIntegration | None = None,
406-
*args: Any,
407-
**kwargs: Any,
408406
):
409407
self.db_api_integration = db_api_integration
410408
wrapt.ObjectProxy.__init__(self, connection)
@@ -436,9 +434,7 @@ def get_traced_connection_proxy(
436434
*args: Any,
437435
**kwargs: Any,
438436
) -> TracedConnectionProxy[ConnectionT]:
439-
return TracedConnectionProxy(
440-
connection, db_api_integration, *args, **kwargs
441-
)
437+
return TracedConnectionProxy(connection, db_api_integration)
442438

443439

444440
class CursorTracer(Generic[CursorT]):
@@ -571,8 +567,6 @@ def __init__(
571567
self,
572568
cursor: CursorT,
573569
db_api_integration: DatabaseApiIntegration,
574-
*args: Any,
575-
**kwargs: Any,
576570
):
577571
self._cursor_tracer = CursorTracer[CursorT](db_api_integration)
578572
wrapt.ObjectProxy.__init__(self, cursor)
@@ -606,4 +600,4 @@ def get_traced_cursor_proxy(
606600
*args: Any,
607601
**kwargs: Any,
608602
) -> TracedCursorProxy[CursorT]:
609-
return TracedCursorProxy(cursor, db_api_integration, *args, **kwargs)
603+
return TracedCursorProxy(cursor, db_api_integration)

0 commit comments

Comments
 (0)