Skip to content

Commit 300c859

Browse files
committed
recursive typing works with current mypy
1 parent d9531df commit 300c859

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

newsfragments/3063.internal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added recursive typing to ``ABIFunctionComponents`` type

web3/types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ class ABIEvent(TypedDict, total=False):
9090

9191

9292
class ABIFunctionComponents(TypedDict, total=False):
93-
# better typed as Sequence['ABIFunctionComponents'], but recursion not possible yet
94-
# https://github.com/python/mypy/issues/731
95-
components: Sequence[Any]
93+
components: Sequence["ABIFunctionComponents"]
9694
name: str
9795
type: str
9896

0 commit comments

Comments
 (0)