@@ -115,6 +115,8 @@ def retrieve_blocking_method_call_fn(
115115 method : Method [Callable [..., TReturn ]],
116116) -> Callable [..., Union [TReturn , LogFilter ]]:
117117 def caller (* args : Any , ** kwargs : Any ) -> Union [TReturn , LogFilter ]:
118+ response_formatters : ResponseFormatters [Any ]
119+
118120 try :
119121 (method_str , params ), response_formatters = method .process_params (
120122 module , * args , ** kwargs
@@ -151,6 +153,8 @@ def retrieve_async_method_call_fn(
151153 async def caller (
152154 * args : Any , ** kwargs : Any
153155 ) -> Union [RPCResponse , FormattedEthSubscriptionResponse , AsyncLogFilter ]:
156+ response_formatters : ResponseFormatters [Any ]
157+
154158 try :
155159 (method_str , params ), response_formatters = method .process_params (
156160 module , * args , ** kwargs
@@ -198,7 +202,7 @@ def __init__(self, w3: Union["AsyncWeb3", "Web3"]) -> None:
198202 self .retrieve_caller_fn = retrieve_async_method_call_fn (w3 , self )
199203 else :
200204 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 ]
202206 w3 , self
203207 )
204208 self .w3 = w3
0 commit comments