faster-eth-utils 5.3.9__cp314-cp314-musllinux_1_2_i686.whl → 5.3.10__cp314-cp314-musllinux_1_2_i686.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.

Potentially problematic release.


This version of faster-eth-utils might be problematic. Click here for more details.

@@ -9,9 +9,14 @@ from typing import (
9
9
  TypeVar,
10
10
  Union,
11
11
  cast,
12
+ overload,
12
13
  )
13
14
  import warnings
14
15
 
16
+ from typing_extensions import (
17
+ TypeGuard,
18
+ )
19
+
15
20
  from .decorators import (
16
21
  return_arg_type,
17
22
  )
@@ -90,11 +95,23 @@ def apply_formatters_to_sequence(
90
95
  )
91
96
 
92
97
 
98
+ @overload
99
+ def apply_formatter_if(
100
+ condition: Callable[[TArg], TypeGuard[TOther]], formatter: Callable[[TOther], TReturn], value: TArg
101
+ ) -> Union[TArg, TReturn]: ...
102
+
103
+ @overload
93
104
  def apply_formatter_if(
94
105
  condition: Callable[[TArg], bool], formatter: Callable[[TArg], TReturn], value: TArg
106
+ ) -> Union[TArg, TReturn]: ...
107
+
108
+ def apply_formatter_if(
109
+ condition: Union[Callable[[TArg], TypeGuard[TOther]], Callable[[Any], TypeGuard[TOther]], Callable[[TArg], bool]],
110
+ formatter: Union[Callable[[TOther], TReturn], Callable[[TArg], TReturn]],
111
+ value: TArg,
95
112
  ) -> Union[TArg, TReturn]:
96
113
  if condition(value):
97
- return formatter(value)
114
+ return formatter(value) # type: ignore [arg-type]
98
115
  else:
99
116
  return value
100
117
 
@@ -81,7 +81,7 @@ class CamelModel(BaseModel):
81
81
  )
82
82
 
83
83
  @classmethod
84
- def model_json_schema(
84
+ def model_json_schema( # type: ignore [override]
85
85
  cls,
86
86
  by_alias: bool = True,
87
87
  ref_template: str = DEFAULT_REF_TEMPLATE,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster-eth-utils
3
- Version: 5.3.9
3
+ Version: 5.3.10
4
4
  Summary: A fork of eth-utils: Common utility functions for python code that interacts with Ethereum, implemented in C
5
5
  Home-page: https://github.com/BobTheBuidler/eth-utils
6
6
  Author: The Ethereum Foundation
@@ -1,4 +1,4 @@
1
- 99c07adba6ff961eaf3e__mypyc.cpython-314-i386-linux-musl.so,sha256=Eyy2MlsA6FkA7w6TAGEqLVHuiz_cSls9_nG204YOP-w,1538948
1
+ 99c07adba6ff961eaf3e__mypyc.cpython-314-i386-linux-musl.so,sha256=1E0EKKGbVlZGPHhFOfhbESnLdY0pFHSOnLjzfbu_d1s,1539144
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-314-i386-linux-musl.so,sha256=YMegU2kFg-oGoMrOArSSn-fE0GOznn6k4qaSBY4iNfg,16728
@@ -6,7 +6,7 @@ faster_eth_utils/abi.py,sha256=2Lk78YiWLIG_srH2nTYny8tYrxM7JS-zWNpBe8ACMEs,26544
6
6
  faster_eth_utils/address.cpython-314-i386-linux-musl.so,sha256=atyQ2vv8rSSDGbne8q2updej8ZPnLj054QRFZEmWGZc,16744
7
7
  faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
8
8
  faster_eth_utils/applicators.cpython-314-i386-linux-musl.so,sha256=c9NPgI46Ex4fahgMABLAtYQzSv-QiM5ukXium6vD2gQ,16760
9
- faster_eth_utils/applicators.py,sha256=2BKYgRaXgUhA1sCMApuJvN6Qy59LBDkUzQcQkJdknJA,5301
9
+ faster_eth_utils/applicators.py,sha256=dcmcvx2PvK7I6xilt02mlr8OmEOTOeajh3uAbZoOONg,5842
10
10
  faster_eth_utils/conversions.cpython-314-i386-linux-musl.so,sha256=m6IjWbVlyz57pJVPjMygith5HlRnXY9WtAmE7G8gq9U,16760
11
11
  faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
12
  faster_eth_utils/crypto.cpython-314-i386-linux-musl.so,sha256=DMDavKhPB5_j5C1rgLlX7K7BARqxtfQnOetMkUSwUOI,16740
@@ -35,7 +35,7 @@ faster_eth_utils/network.py,sha256=O3yTtA93YyyZ6Obkusr_IbbcZ6upkCewN6EsAcF0Npc,2
35
35
  faster_eth_utils/numeric.cpython-314-i386-linux-musl.so,sha256=3g-gRBXuYWJf1ijN0DEnTYxQMLQRmhcHC2FgdhSqCv0,16744
36
36
  faster_eth_utils/numeric.py,sha256=RrXdXI-bhhkEsz3aBtxHuGlc_2ZJvUGpvMc47wx408Y,1190
37
37
  faster_eth_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- faster_eth_utils/pydantic.py,sha256=Bmj9J-Nia0bv5PvaFxxncyW9KrCNtsbDyf2PV4jPmUo,3366
38
+ faster_eth_utils/pydantic.py,sha256=za0WJGWkjYQkRnMbEke7ueyhDt-kuqFmCq0Utaji46g,3393
39
39
  faster_eth_utils/toolz.cpython-314-i386-linux-musl.so,sha256=4cloZOuOgPN4rXySGqtI_MRw8xU-_OMlpxYBLmCnEEw,16736
40
40
  faster_eth_utils/toolz.py,sha256=1QQY-aMbZrEgJsuqR0Ajsa32C_cXrQquzViw7OkxNLU,4410
41
41
  faster_eth_utils/types.cpython-314-i386-linux-musl.so,sha256=-nKMa2s67CrDT5glxKeYN9xO2iIp_4Ay-bYzUArsq5w,16736
@@ -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.9.dist-info/METADATA,sha256=7TPPCO8PBRlno3m0Yay89SjK5b2SQ9EjEOksQb74RQQ,7096
50
- faster_eth_utils-5.3.9.dist-info/WHEEL,sha256=2rSWyj1cRandbxJEJyuomjkW1LR7P9wlX7BYeUk-mjg,110
51
- faster_eth_utils-5.3.9.dist-info/top_level.txt,sha256=8eOy3WlvVLCcmwPnl2UMylYQNmrXz76p9L_TH-NYSSM,55
52
- faster_eth_utils-5.3.9.dist-info/RECORD,,
53
- faster_eth_utils-5.3.9.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
49
+ faster_eth_utils-5.3.10.dist-info/METADATA,sha256=BA8lAFW1ikC9TnFsCOpOjnlkhLDR575WbAunmLCrhvU,7097
50
+ faster_eth_utils-5.3.10.dist-info/WHEEL,sha256=2rSWyj1cRandbxJEJyuomjkW1LR7P9wlX7BYeUk-mjg,110
51
+ faster_eth_utils-5.3.10.dist-info/top_level.txt,sha256=8eOy3WlvVLCcmwPnl2UMylYQNmrXz76p9L_TH-NYSSM,55
52
+ faster_eth_utils-5.3.10.dist-info/RECORD,,
53
+ faster_eth_utils-5.3.10.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095