diff --git a/newsfragments/1664.bugfix.rst b/newsfragments/1664.bugfix.rst new file mode 100644 index 0000000000..ff9b26673b --- /dev/null +++ b/newsfragments/1664.bugfix.rst @@ -0,0 +1 @@ +Correct the type annotations of `FilterParams.address` diff --git a/web3/types.py b/web3/types.py index a1ddfe3ef3..28d3c4ae14 100644 --- a/web3/types.py +++ b/web3/types.py @@ -136,7 +136,7 @@ class FormattersDict(TypedDict, total=False): class FilterParams(TypedDict, total=False): - address: Union[Address, ChecksumAddress, List[ChecksumAddress]] + address: Union[Address, ChecksumAddress, List[Address], List[ChecksumAddress]] blockHash: HexBytes fromBlock: BlockIdentifier toBlock: BlockIdentifier