Skip to content

Commit 710950b

Browse files
committed
fix
1 parent 8ab7ec9 commit 710950b

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
@@ -12,7 +12,7 @@ requires = [
1212
"faster-eth-abi>=5.2,<5.3; platform_system != 'Linux' or platform_machine != 'i686'",
1313
"faster-hexbytes<3",
1414
"py-geth>=5.1.0; platform_system != 'Windows' and platform_machine != 'i686'",
15-
"pyunormalize>=15.0.0",
15+
"pyunormalize>=17.0.0",
1616
]
1717

1818
[tool.autoflake]

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"faster_web3/constants.py",
106106
"faster_web3/contract/utils.py",
107107
"faster_web3/gas_strategies",
108+
"faster_web3/logs.py",
108109
"faster_web3/providers/eth_tester",
109110
"faster_web3/providers/persistent/persistent_connection.py",
110111
"faster_web3/providers/persistent/request_processor.py",
@@ -213,7 +214,7 @@
213214
"typing-extensions>=4.0.1",
214215
"types-requests>=2.0.0",
215216
"websockets>=10.0.0,<16.0.0",
216-
"pyunormalize>=15.0.0",
217+
"pyunormalize>=17.0.0",
217218
],
218219
python_requires=">=3.9, <4",
219220
extras_require=extras_require,

0 commit comments

Comments
 (0)