Skip to content

Commit 14f9f6b

Browse files
committed
Update method_formatters.py
1 parent f10cc7f commit 14f9f6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

faster_web3/_utils/method_formatters.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
Dict,
99
Final,
1010
Iterable,
11+
List,
1112
Literal,
1213
NoReturn,
14+
Sequence,
1315
Tuple,
1416
TypeVar,
1517
Union,
@@ -114,6 +116,7 @@
114116
SimulateV1Payload,
115117
StateOverrideParams,
116118
TReturn,
119+
TValue,
117120
TxParams,
118121
_Hash32,
119122
)
@@ -206,7 +209,7 @@ def type_aware_apply_formatters_to_dict_keys_and_values(
206209
)
207210

208211

209-
def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:
212+
def apply_list_to_array_formatter(formatter: Callable[[TValue], TReturn]) -> Callable[[Sequence[TValue]], List[TReturn]]:
210213
return to_list(apply_formatter_to_array(formatter))
211214

212215

0 commit comments

Comments
 (0)