faster-eth-utils 5.3.12__cp39-cp39-musllinux_1_2_x86_64.whl → 5.3.13__cp39-cp39-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- faster_eth_utils/applicators.py +6 -9
- {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/METADATA +8 -2
- {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/RECORD +7 -7
- faster_eth_utils__mypyc.cpython-39-x86_64-linux-gnu.so +0 -0
- {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/WHEEL +0 -0
- {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/licenses/LICENSE +0 -0
- {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/top_level.txt +0 -0
faster_eth_utils/applicators.py
CHANGED
@@ -138,24 +138,21 @@ def apply_formatters_to_dict(
|
|
138
138
|
if isinstance(value, CamelModel):
|
139
139
|
value = value.model_dump(by_alias=not unaliased)
|
140
140
|
|
141
|
-
def get_value(key: Any,
|
141
|
+
def get_value(key: Any, val: Any) -> Any:
|
142
142
|
if key not in formatters:
|
143
|
-
return
|
143
|
+
return val
|
144
144
|
try:
|
145
|
-
return formatters[key](
|
145
|
+
return formatters[key](val)
|
146
146
|
except ValueError as exc:
|
147
147
|
raise ValueError(
|
148
|
-
f"Could not format invalid value {
|
148
|
+
f"Could not format invalid value {val!r} as field {key!r}"
|
149
149
|
) from exc
|
150
150
|
except TypeError as exc:
|
151
151
|
raise TypeError(
|
152
|
-
f"Could not format invalid type {
|
152
|
+
f"Could not format invalid type {val!r} as field {key!r}"
|
153
153
|
) from exc
|
154
154
|
|
155
|
-
return {
|
156
|
-
key: get_value(key, item) if key in formatters else key
|
157
|
-
for key, item in value.items()
|
158
|
-
}
|
155
|
+
return {key: get_value(key, val) for key, val in value.items()}
|
159
156
|
|
160
157
|
|
161
158
|
@return_arg_type(1)
|
@@ -1,11 +1,16 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: faster-eth-utils
|
3
|
-
Version: 5.3.
|
3
|
+
Version: 5.3.13
|
4
4
|
Summary: A fork of eth-utils: Common utility functions for python code that interacts with Ethereum, implemented in C
|
5
|
-
Home-page: https://github.com/BobTheBuidler/eth-utils
|
5
|
+
Home-page: https://github.com/BobTheBuidler/faster-eth-utils
|
6
6
|
Author: The Ethereum Foundation
|
7
7
|
Author-email: snakecharmers@ethereum.org
|
8
8
|
License: MIT
|
9
|
+
Project-URL: Documentation, https://eth-utils.readthedocs.io/en/stable/
|
10
|
+
Project-URL: Release Notes, https://github.com/BobTheBuidler/faster-eth-utils/releases
|
11
|
+
Project-URL: Issues, https://github.com/BobTheBuidler/faster-eth-utils/issues
|
12
|
+
Project-URL: Source, https://github.com/BobTheBuidler/faster-eth-utils
|
13
|
+
Project-URL: Original, https://github.com/ethereum/eth-utils
|
9
14
|
Keywords: ethereum
|
10
15
|
Classifier: Intended Audience :: Developers
|
11
16
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -67,6 +72,7 @@ Dynamic: home-page
|
|
67
72
|
Dynamic: keywords
|
68
73
|
Dynamic: license
|
69
74
|
Dynamic: license-file
|
75
|
+
Dynamic: project-url
|
70
76
|
Dynamic: provides-extra
|
71
77
|
Dynamic: requires-dist
|
72
78
|
Dynamic: requires-python
|
@@ -1,4 +1,4 @@
|
|
1
|
-
faster_eth_utils__mypyc.cpython-39-x86_64-linux-gnu.so,sha256=
|
1
|
+
faster_eth_utils__mypyc.cpython-39-x86_64-linux-gnu.so,sha256=QwlGYfzeDR4lsoZeBSxUgJvFULWNUwABOlLf_LAqKPA,1392752
|
2
2
|
faster_eth_utils/__init__.py,sha256=hW-A_fjyQ76crTKwuxxSbvNzvPfW27dSlzhtOkseymg,2762
|
3
3
|
faster_eth_utils/__main__.py,sha256=mH37e49q7_A0-q1ymqkq1QyYABbQHVmXeuSKIBSahO8,86
|
4
4
|
faster_eth_utils/abi.cpython-39-x86_64-linux-gnu.so,sha256=5rEgTznKgTt9wYfvVn8zN54E4yaAgD1N4EZcM2lpAV0,17608
|
@@ -6,7 +6,7 @@ faster_eth_utils/abi.py,sha256=3pAqpKXMOcOLCD4uUUVfxBcM9H1K311dpd1Zj0Qi21g,26404
|
|
6
6
|
faster_eth_utils/address.cpython-39-x86_64-linux-gnu.so,sha256=VX9mSR8zwR77f-mu0eD5Mq5HsWTWE_tVI95kmIHllhA,17624
|
7
7
|
faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
|
8
8
|
faster_eth_utils/applicators.cpython-39-x86_64-linux-gnu.so,sha256=30RqQ6r6pJ-anZ4AYxG4Uujr0THSWIPYwDMwSiso_N4,17640
|
9
|
-
faster_eth_utils/applicators.py,sha256=
|
9
|
+
faster_eth_utils/applicators.py,sha256=61XBoTjROcwRslkPyCExOOYb5v7FbVVIIOYfmwgJIBk,5774
|
10
10
|
faster_eth_utils/conversions.cpython-39-x86_64-linux-gnu.so,sha256=0WBEM_vukX_PoTRsnVX6gKHkdRPlv5m_EqxP5MQ9ZEs,17640
|
11
11
|
faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
|
12
12
|
faster_eth_utils/crypto.cpython-39-x86_64-linux-gnu.so,sha256=reLTOf6E18FIjDpWmx4fk77VuhbOLCJyi2g2sDZurF0,17624
|
@@ -46,8 +46,8 @@ faster_eth_utils/__json/eth_networks.json,sha256=0S8HoWD6RTR6Hc0uQdQl2VHtopytIYl
|
|
46
46
|
faster_eth_utils/curried/__init__.py,sha256=x_nPjvTwmXeEl5jV86RRUvudu6ks1kMUxZfbjNuGx8Y,7407
|
47
47
|
faster_eth_utils/typing/__init__.py,sha256=84PxIxCvEHtBb-Ik6qnGvXH4alaWbamr_zDbtlbJh3A,325
|
48
48
|
faster_eth_utils/typing/misc.py,sha256=4N5raYXFAeRGpmch6qgHrtYNCDxCJM5XtAAsJ1FSzzU,190
|
49
|
-
faster_eth_utils-5.3.
|
50
|
-
faster_eth_utils-5.3.
|
51
|
-
faster_eth_utils-5.3.
|
52
|
-
faster_eth_utils-5.3.
|
53
|
-
faster_eth_utils-5.3.
|
49
|
+
faster_eth_utils-5.3.13.dist-info/METADATA,sha256=s6MKNWkp8Bo9yKciC5RajtnB6uiZCwTJmcvTVT2Ci9I,8197
|
50
|
+
faster_eth_utils-5.3.13.dist-info/WHEEL,sha256=1lQ8uVaF0e0KhYU1_N6mtUH8lO3rq4o3quRVE11_OcQ,110
|
51
|
+
faster_eth_utils-5.3.13.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
|
52
|
+
faster_eth_utils-5.3.13.dist-info/RECORD,,
|
53
|
+
faster_eth_utils-5.3.13.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|