@@ -32,7 +32,8 @@ def __call__(self, *args, **kwargs):
32
32
method_call_obj = cb_create_call_stack_context_manager (method .__name__ , args , kwargs ) if cb_create_call_stack_context_manager else nullcontext ()
33
33
with method_call_obj :
34
34
if not isinstance (method_call_obj , nullcontext ):
35
- new_args , new_kwargs = method_call_obj .handle_start_method_call (self ._obj , method .__name__ , method_signature , args , kwargs )
35
+ all_args = tuple ([self ._obj ] + list (args ))
36
+ new_args , new_kwargs = method_call_obj .handle_start_method_call (method .__name__ , method_signature , all_args , kwargs )
36
37
args = new_args [1 :]; kwargs = new_kwargs
37
38
38
39
ret = method (self ._obj , * args , ** kwargs )
@@ -67,7 +68,8 @@ def __call__(self, *args, **kwargs):
67
68
method_call_obj = cb_create_call_stack_context_manager (method .__name__ , args , kwargs ) if cb_create_call_stack_context_manager else nullcontext ()
68
69
with method_call_obj :
69
70
if not isinstance (method_call_obj , nullcontext ):
70
- new_args , new_kwargs = method_call_obj .handle_start_method_call (self ._obj , method .__name__ , method_signature , args , kwargs )
71
+ all_args = tuple ([self ._obj ] + list (args ))
72
+ new_args , new_kwargs = method_call_obj .handle_start_method_call (method .__name__ , method_signature , all_args , kwargs )
71
73
args = new_args [1 :]; kwargs = new_kwargs
72
74
73
75
ret = method (self ._obj , * args , ** kwargs )
0 commit comments