Skip to content

Commit ad4772f

Browse files
authored
Merge pull request #1724 from carver/upgrade-deps
Upgrade eth-account and eth-tester
2 parents d431db5 + 706a314 commit ad4772f

File tree

10 files changed

+18
-10
lines changed

10 files changed

+18
-10
lines changed

newsfragments/1724.misc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Upgrade eth-tester to v0.5.0-beta.2 and eth-account to v0.5.3. These both support the latest pyrlp,
2+
which has a performance bump.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
extras_require = {
99
'tester': [
10-
"eth-tester[py-evm]==v0.5.0-beta.1",
10+
"eth-tester[py-evm]==v0.5.0-beta.2",
1111
"py-geth>=2.4.0,<3",
1212
],
1313
'linter': [
@@ -70,7 +70,7 @@
7070
include_package_data=True,
7171
install_requires=[
7272
"eth-abi>=2.0.0b6,<3.0.0",
73-
"eth-account>=0.5.2,<0.6.0",
73+
"eth-account>=0.5.3,<0.6.0",
7474
"eth-hash[pycryptodome]>=0.2.0,<1.0.0",
7575
"eth-typing>=2.0.0,<3.0.0",
7676
"eth-utils>=1.9.3,<2.0.0",

web3/_utils/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
to_dict,
2222
to_list,
2323
)
24-
from eth_utils.curried import ( # type: ignore
24+
from eth_utils.curried import (
2525
apply_formatter_at_index,
2626
)
2727
from eth_utils.toolz import (

web3/_utils/method_formatters.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
Collection,
77
Dict,
88
Iterable,
9+
Tuple,
910
Union,
1011
)
1112

12-
from eth_utils.curried import ( # type: ignore
13+
from eth_utils.curried import (
1314
apply_formatter_at_index,
1415
apply_formatter_if,
1516
apply_formatter_to_array,
@@ -299,7 +300,12 @@ def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:
299300
)
300301

301302

303+
estimate_gas_without_block_id: Callable[[Dict[str, Any]], Dict[str, Any]]
302304
estimate_gas_without_block_id = apply_formatter_at_index(transaction_param_formatter, 0)
305+
estimate_gas_with_block_id: Callable[
306+
[Tuple[Dict[str, Any], Union[str, int]]],
307+
Tuple[Dict[str, Any], int]
308+
]
303309
estimate_gas_with_block_id = apply_formatters_to_sequence([
304310
transaction_param_formatter,
305311
block_number_formatter,

web3/_utils/rpc_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from eth_utils import (
1414
to_dict,
1515
)
16-
from eth_utils.curried import ( # type: ignore
16+
from eth_utils.curried import (
1717
apply_formatter_at_index,
1818
)
1919
from eth_utils.toolz import (

web3/_utils/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
is_list_like,
2222
is_string,
2323
)
24-
from eth_utils.curried import ( # type: ignore
24+
from eth_utils.curried import (
2525
apply_formatter_to_array,
2626
)
2727
from eth_utils.hexadecimal import (

web3/method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616
import warnings
1717

18-
from eth_utils.curried import ( # type: ignore
18+
from eth_utils.curried import (
1919
to_tuple,
2020
)
2121
from eth_utils.toolz import (

web3/middleware/geth_poa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eth_utils.curried import ( # type: ignore
1+
from eth_utils.curried import (
22
apply_formatters_to_dict,
33
apply_key_map,
44
)

web3/middleware/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Callable,
55
)
66

7-
from eth_utils.curried import ( # type: ignore
7+
from eth_utils.curried import (
88
apply_formatter_at_index,
99
apply_formatter_if,
1010
apply_formatters_to_dict,

web3/providers/eth_tester/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
is_hex,
1414
is_string,
1515
)
16-
from eth_utils.curried import ( # type: ignore
16+
from eth_utils.curried import (
1717
apply_formatter_if,
1818
apply_formatters_to_dict,
1919
)

0 commit comments

Comments
 (0)