Skip to content

Commit 824d442

Browse files
chore: fix mypy errs
1 parent 932cc35 commit 824d442

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web3/method.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848

4949
Munger = Callable[..., Any]
50+
RequestFormatter = Callable[[RPCResponse], TReturn]]
51+
ResponseFormatter = Callable[[RPCResponse], TReturn]]
5052

5153

5254
def _set_mungers(
@@ -119,9 +121,9 @@ def __init__(
119121
self,
120122
json_rpc_method: Optional[RPCEndpoint] = None,
121123
mungers: Optional[Sequence[Munger]] = None,
122-
request_formatters: Optional[Callable[[RPCEndpoint], Callable[..., TReturn]]] = None,
123-
result_formatters: Optional[Callable[..., TReturn]] = None,
124-
null_result_formatters: Optional[Callable[..., TReturn]] = None,
124+
request_formatters: Optional[Callable[[RPCEndpoint], Callable[..., Any]] = None,
125+
result_formatters: Optional[Callable[[RPCEndpoint, Module], ResponseFormatter[TReturn]]] = None,
126+
null_result_formatters: Optional[Callable[[RPCEndpoint], ResponseFormatter[TReturn]]] = None,
125127
method_choice_depends_on_args: Optional[Callable[..., RPCEndpoint]] = None,
126128
is_property: bool = False,
127129
):

0 commit comments

Comments
 (0)