Skip to content

Commit 64d900c

Browse files
committed
fix
1 parent 42d8f3f commit 64d900c

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

faster_ens/_normalization.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
final,
2323
)
2424

25-
import pyunormalize._unicode as unicode
2625
from pyunormalize import (
26+
_unicode_data,
2727
normalization,
2828
)
2929

@@ -33,10 +33,10 @@
3333

3434
# Constants vendored from pyunormalize
3535

36-
_NFC__QC_NO_OR_MAYBE: Final = unicode._NFC__QC_NO_OR_MAYBE
37-
_NFD__QC_NO: Final = unicode._NFD__QC_NO
38-
_NON_ZERO_CCC_TABLE: Final = unicode._NON_ZERO_CCC_TABLE
39-
_COMPOSITION_EXCLUSIONS: Final = unicode._COMPOSITION_EXCLUSIONS
36+
_NFC__QC_NO_OR_MAYBE: Final = _unicode_data._NFC__QC_NO_OR_MAYBE
37+
_NFD__QC_NO: Final = _unicode_data._NFD__QC_NO
38+
_NON_ZERO_CCC_TABLE: Final = _unicode_data._NON_ZERO_CCC_TABLE
39+
_COMPOSITION_EXCLUSIONS: Final = _unicode_data._COMPOSITION_EXCLUSIONS
4040
_COMPOSITE_BY_CDECOMP: Final[Dict[Tuple[int, Optional[int]], int]] = normalization._COMPOSITE_BY_CDECOMP
4141
_FULL_CDECOMP_BY_CHAR: Final[Dict[int, List[int]]] = normalization._FULL_CDECOMP_BY_CHAR
4242
_LB: Final = normalization._LB

faster_web3/logs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
from typing import (
2+
Final,
3+
)
4+
15
from faster_web3._utils.events import (
26
EventLogErrorFlags,
37
)
48

5-
DISCARD = EventLogErrorFlags.Discard
6-
IGNORE = EventLogErrorFlags.Ignore
7-
STRICT = EventLogErrorFlags.Strict
8-
WARN = EventLogErrorFlags.Warn
9+
DISCARD: Final = EventLogErrorFlags.Discard
10+
IGNORE: Final = EventLogErrorFlags.Ignore
11+
STRICT: Final = EventLogErrorFlags.Strict
12+
WARN: Final = EventLogErrorFlags.Warn

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ requires = [
1111
"faster-eth-abi>=5.2,<5.3; platform_system != 'Linux' or python_version != '3.14' or platform_machine != 'i686'",
1212
"faster-hexbytes<3",
1313
"py-geth>=5.1.0",
14-
"pyunormalize>=15.0.0",
14+
"pyunormalize>=17.0.0",
1515
]
1616

1717
[tool.autoflake]

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"faster_web3/constants.py",
9999
"faster_web3/contract/utils.py",
100100
"faster_web3/gas_strategies",
101+
"faster_web3/logs.py",
101102
"faster_web3/providers/eth_tester",
102103
"faster_web3/providers/persistent/persistent_connection.py",
103104
"faster_web3/providers/persistent/request_processor.py",
@@ -205,7 +206,7 @@
205206
"typing-extensions>=4.0.1",
206207
"types-requests>=2.0.0",
207208
"websockets>=10.0.0,<16.0.0",
208-
"pyunormalize>=15.0.0",
209+
"pyunormalize>=17.0.0",
209210
],
210211
python_requires=">=3.9, <4",
211212
extras_require=extras_require,

0 commit comments

Comments
 (0)