mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-135496: Fix f string exclamation mark error typo (GH-135495) (#135501)
This commit is contained in:
parent
e753a7c5f0
commit
a43cf1074a
3 changed files with 3 additions and 2 deletions
|
|
@ -955,7 +955,7 @@ _PyPegen_check_fstring_conversion(Parser *p, Token* conv_token, expr_ty conv)
|
|||
if (conv_token->lineno != conv->lineno || conv_token->end_col_offset != conv->col_offset) {
|
||||
return RAISE_SYNTAX_ERROR_KNOWN_RANGE(
|
||||
conv_token, conv,
|
||||
"f-string: conversion type must come right after the exclamanation mark"
|
||||
"f-string: conversion type must come right after the exclamation mark"
|
||||
);
|
||||
}
|
||||
return result_token_with_metadata(p, conv, conv_token->metadata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue