@@ -115,6 +115,8 @@ def retrieve_blocking_method_call_fn(
115
115
method : Method [Callable [..., TReturn ]],
116
116
) -> Callable [..., Union [TReturn , LogFilter ]]:
117
117
def caller (* args : Any , ** kwargs : Any ) -> Union [TReturn , LogFilter ]:
118
+ response_formatters : ResponseFormatters [Any ]
119
+
118
120
try :
119
121
(method_str , params ), response_formatters = method .process_params (
120
122
module , * args , ** kwargs
@@ -151,6 +153,8 @@ def retrieve_async_method_call_fn(
151
153
async def caller (
152
154
* args : Any , ** kwargs : Any
153
155
) -> Union [RPCResponse , FormattedEthSubscriptionResponse , AsyncLogFilter ]:
156
+ response_formatters : ResponseFormatters [Any ]
157
+
154
158
try :
155
159
(method_str , params ), response_formatters = method .process_params (
156
160
module , * args , ** kwargs
@@ -198,7 +202,7 @@ def __init__(self, w3: Union["AsyncWeb3", "Web3"]) -> None:
198
202
self .retrieve_caller_fn = retrieve_async_method_call_fn (w3 , self )
199
203
else :
200
204
self .retrieve_caller_fn = retrieve_blocking_method_call_fn (w3 , self )
201
- self .retrieve_request_information = retrieve_request_information_for_batching ( # type: ignore [arg-type ]
205
+ self .retrieve_request_information = retrieve_request_information_for_batching ( # type: ignore [call-overload ]
202
206
w3 , self
203
207
)
204
208
self .w3 = w3
0 commit comments