fix(fstring): minor typos

This commit is contained in:
HEL committed 2026-02-07 19:25:18 +01:00
1 parent 2784518887
commit 34873c7e0e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -116,5 +116,5 @@ class FormatSpecLexer:
while self.peek().isdigit():
self.advance()
value: float = float(self.source[self.start:self.idx])
value: int = int(self.source[self.start:self.idx])
self.add_token(TokenType.NUMBER, value)
+2 -2
View File
@@ -94,7 +94,7 @@ class FormatSpecParser:
if self.match(TokenType.NUMBER):
width = self.previous().value
if self.match(TokenType.COMMA, TokenType.UNDERSCORE):
grouping = self.previous().value
grouping = self.previous()
return FormatSpecIntegral(
width=width,
grouping=grouping
@@ -107,7 +107,7 @@ class FormatSpecParser:
if self.match(TokenType.NUMBER):
precision = self.previous().value
if self.match(TokenType.COMMA, TokenType.UNDERSCORE):
grouping = self.previous().value
grouping = self.previous()
return FormatSpecDecimal(
precision=precision,
grouping=grouping