Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d46062

Browse filesBrowse files
committed
Fix types
1 parent b16de95 commit 0d46062
Copy full SHA for 0d46062

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

‎web3/contract/base_contract.py

Copy file name to clipboardExpand all lines: web3/contract/base_contract.py
+5-3Lines changed: 5 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.