Skip to content

Commit bac0d9d

Browse files
committed
fix: replace literal Arabic-Indic zero in comment with code point
Ruff's RUF003 flagged the literal ٠ character in the comment as an ambiguous unicode character. Reference it by code point instead.
1 parent 88b3be4 commit bac0d9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tomlkit/parser.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def _parse_inline_table(self) -> InlineTable:
761761
return InlineTable(elems, Trivia())
762762

763763
def _parse_number(self, raw: str, trivia: Trivia) -> Item | None:
764-
# Reject non-ASCII digit characters (e.g. Arabic-Indic zero, ٠):
764+
# Reject non-ASCII digit characters (e.g. Arabic-Indic zero, U+0660):
765765
# int()/float() accept any Unicode decimal digit, but TOML numbers
766766
# are ASCII-only.
767767
if not raw.isascii():

0 commit comments

Comments
 (0)