Skip to content

Commit e3e1801

Browse files
Update method.py
1 parent 57af53d commit e3e1801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web3/method.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ def __call__(self, *args: Any, **kwargs: Any) -> Any:
170170
@property
171171
def method_selector_fn(
172172
self,
173-
) -> Callable[..., Union[RPCEndpoint, Callable[..., RPCEndpoint]]]:
173+
) -> Callable[[], RPCEndpoint]:
174174
"""Gets the method selector from the config."""
175175
if callable(self.json_rpc_method):
176176
return self.json_rpc_method
177177
elif isinstance(self.json_rpc_method, (str,)):
178-
return lambda *_: self.json_rpc_method
178+
return lambda: self.json_rpc_method
179179
raise Web3ValueError(
180180
"``json_rpc_method`` config invalid. May be a string or function"
181181
)

0 commit comments

Comments
 (0)