mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:33 +00:00
Implement template strings (#17851)
This PR implements template strings (t-strings) in the parser and formatter for Ruff. Minimal changes necessary to compile were made in other parts of the code (e.g. ty, the linter, etc.). These will be covered properly in follow-up PRs.
This commit is contained in:
parent
ad024f9a09
commit
9bbf4987e8
261 changed files with 18023 additions and 1802 deletions
|
@ -94,6 +94,7 @@ pub(super) fn detect_invalid_pre_py39_decorator_node(
|
|||
Expr::YieldFrom(_) => "`yield from` expression",
|
||||
Expr::Compare(_) => "comparison expression",
|
||||
Expr::FString(_) => "f-string",
|
||||
Expr::TString(_) => "t-string",
|
||||
Expr::Named(_) => "assignment expression",
|
||||
Expr::Subscript(_) => "subscript expression",
|
||||
Expr::IpyEscapeCommand(_) => "IPython escape command",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue