Skip to content

Commit 82d4e2b

Browse files
committed
Rename res to number
1 parent a207fbb commit 82d4e2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/tomllib/_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,9 @@ def parse_value(
751751
# Try a simple parser for decimal numbers. If it's able to parse all
752752
# numbers, it avoids importing tomllib._re which has an impact on
753753
# the tomllib startup time.
754-
res = try_simple_decimal(src, pos)
755-
if res is not None:
756-
return res
754+
number = try_simple_decimal(src, pos)
755+
if number is not None:
756+
return number
757757

758758
# Dates and times
759759
datetime_match = RE_DATETIME.match(src, pos)

0 commit comments

Comments
 (0)