Skip to content

Commit 7d952c9

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

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

web3/module.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,20 @@ async def caller(
185185
class Module:
186186
is_async = False
187187

188-
@overload
189-
def __init__(self, w3: "AsyncWeb3") -> None:
190-
...
191-
192-
@overload
193-
def __init__(self, w3: "Web3") -> None:
194-
...
195-
188+
retrieve_request_information: Callable[
189+
[Method[Callable[..., Any]]],
190+
Union[
191+
Callable[..., Tuple[RequestArgs, ResponseFormatters[Any]]],
192+
Callable[..., Coroutine[Any, Any, Tuple[RequestArgs, ResponseFormatters[Any]]]],
193+
]
194+
]
195+
196196
def __init__(self, w3: Union["AsyncWeb3", "Web3"]) -> None:
197197
if self.is_async:
198198
self.retrieve_caller_fn = retrieve_async_method_call_fn(w3, self)
199199
else:
200200
self.retrieve_caller_fn = retrieve_blocking_method_call_fn(w3, self)
201-
self.retrieve_request_information = retrieve_request_information_for_batching(
201+
self.retrieve_request_information = retrieve_request_information_for_batching( # type: ignore [arg-type]
202202
w3, self
203203
)
204204
self.w3 = w3

0 commit comments

Comments
 (0)