Skip to content

Commit c980bca

Browse files
committed
Fix types
1 parent 23a6a80 commit c980bca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web3/contract/base_contract.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
)
2323
from eth_typing import (
2424
ABI,
25+
ABIComponent,
26+
ABIComponentIndexed,
2527
ABIElement,
2628
ABIEvent,
2729
ABIFunction,
@@ -218,7 +220,7 @@ def anonymous(self) -> Optional[bool]:
218220
return self.abi.get("anonymous")
219221

220222
@property
221-
def inputs(self) -> Optional[List]:
223+
def inputs(self) -> Optional[Sequence["ABIComponentIndexed"]]:
222224
return self.abi.get("inputs")
223225

224226
@combomethod
@@ -617,11 +619,11 @@ def type(self) -> str:
617619
return "function"
618620

619621
@property
620-
def inputs(self) -> Optional[List]:
622+
def inputs(self) -> Optional[Sequence["ABIComponent"]]:
621623
return self.abi.get("inputs")
622624

623625
@property
624-
def outputs(self) -> Optional[List]:
626+
def outputs(self) -> Optional[Sequence["ABIComponent"]]:
625627
return self.abi.get("outputs")
626628

627629
@combomethod

0 commit comments

Comments
 (0)