From 9b944443dc12f5cb7630aee06f322c16d3e9fb14 Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Tue, 2 Jun 2020 15:07:45 +0200 Subject: [PATCH 1/2] Correct type of FilterParams.address --- web3/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8a99bcc971d6b4854099f93cbb9195d57d9844f3 Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Tue, 2 Jun 2020 15:12:01 +0200 Subject: [PATCH 2/2] Add changelog entry --- newsfragments/1664.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/1664.bugfix.rst 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`