Skip to content

Commit b9a1319

Browse files
chore: fix mypy errs
1 parent 7d952c9 commit b9a1319

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web3/module.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)