|
59 | 59 |
|
60 | 60 | if TYPE_CHECKING: |
61 | 61 |
|
62 | | - class wrapt: |
| 62 | + class wrapt: # pylint: disable=invalid-name |
63 | 63 | class ObjectProxy: |
64 | 64 | def __init__(self, *args: Any, **kwargs: Any) -> None: |
65 | 65 | pass |
@@ -403,8 +403,6 @@ def __init__( |
403 | 403 | self, |
404 | 404 | connection: ConnectionT, |
405 | 405 | db_api_integration: DatabaseApiIntegration | None = None, |
406 | | - *args: Any, |
407 | | - **kwargs: Any, |
408 | 406 | ): |
409 | 407 | self.db_api_integration = db_api_integration |
410 | 408 | wrapt.ObjectProxy.__init__(self, connection) |
@@ -436,9 +434,7 @@ def get_traced_connection_proxy( |
436 | 434 | *args: Any, |
437 | 435 | **kwargs: Any, |
438 | 436 | ) -> TracedConnectionProxy[ConnectionT]: |
439 | | - return TracedConnectionProxy( |
440 | | - connection, db_api_integration, *args, **kwargs |
441 | | - ) |
| 437 | + return TracedConnectionProxy(connection, db_api_integration) |
442 | 438 |
|
443 | 439 |
|
444 | 440 | class CursorTracer(Generic[CursorT]): |
@@ -571,8 +567,6 @@ def __init__( |
571 | 567 | self, |
572 | 568 | cursor: CursorT, |
573 | 569 | db_api_integration: DatabaseApiIntegration, |
574 | | - *args: Any, |
575 | | - **kwargs: Any, |
576 | 570 | ): |
577 | 571 | self._cursor_tracer = CursorTracer[CursorT](db_api_integration) |
578 | 572 | wrapt.ObjectProxy.__init__(self, cursor) |
@@ -606,4 +600,4 @@ def get_traced_cursor_proxy( |
606 | 600 | *args: Any, |
607 | 601 | **kwargs: Any, |
608 | 602 | ) -> TracedCursorProxy[CursorT]: |
609 | | - return TracedCursorProxy(cursor, db_api_integration, *args, **kwargs) |
| 603 | + return TracedCursorProxy(cursor, db_api_integration) |
0 commit comments