Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos and remove unused import #132

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/update-tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pathlib import Path
from dataclasses import field, fields, dataclass

from typing import Any, Mapping, Iterable, Iterator, Sequence, Container, Collection
from typing import Any, Mapping, Iterable, Iterator, Sequence, Collection

try:
from typing import Self
Expand Down Expand Up @@ -90,7 +90,7 @@ def _bisearch(ucs, table):

@dataclass(order=True, frozen=True)
class UnicodeVersion:
"""A class for camparable unicode version."""
"""A class for comparable unicode version."""
major: int
minor: int
micro: int | None
Expand Down Expand Up @@ -497,7 +497,7 @@ def parse_unicode_table(file: Iterable[str]) -> Iterator[TableEntry]:


def parse_vs16_table(fp: Iterable[str]) -> Iterator[TableEntry]:
"""Parse emoji-variation-sequences.txt for codepoints that preceed 0xFE0F."""
"""Parse emoji-variation-sequences.txt for codepoints that precede 0xFE0F."""
hex_str_vs16 = 'FE0F'
for line in fp:
data, _, comment = line.partition('#')
Expand All @@ -511,7 +511,7 @@ def parse_vs16_table(fp: Iterable[str]) -> Iterator[TableEntry]:
continue
code_points = code_points_str.split()
if len(code_points) == 2 and code_points[1] == hex_str_vs16:
# yeild a single "code range" entry for a single value that preceeds FE0F
# yield a single "code range" entry for a single value that precedes FE0F
yield TableEntry((int(code_points[0], 16), int(code_points[0], 16)), tuple(properties), comment)


Expand Down
Loading