Add mypy fixes.

pull/761/head
Andrey 2023-03-07 16:54:05 +02:00
rodzic 9b56b4d991
commit 3f8f63a866
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -78,8 +78,14 @@ def decode_abi(source: str, session: Optional[Session] = None) -> ContractABI:
session.close()
abi = ContractABI(
functions=cast(EVMFunctionSignature, function_signatures),
events=cast(EVMEventSignature, event_signatures),
functions=[
cast(EVMFunctionSignature, function_signature)
for function_signature in function_signatures
],
events=[
cast(EVMEventSignature, event_signature)
for event_signature in event_signatures
],
)
return abi