mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 00:20:38 +00:00
Invert quote-style when generating code within f-strings (#4487)
This commit is contained in:
parent
2fb312bb2b
commit
73efbeb581
49 changed files with 271 additions and 162 deletions
|
@ -15,7 +15,7 @@ use rustpython_parser::{lexer, Mode, ParseError};
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use std::sync::Arc;
|
||||
pub use stylist::Stylist;
|
||||
pub use stylist::{Quote, Stylist};
|
||||
|
||||
/// Run round-trip source code generation on a given Python code.
|
||||
pub fn round_trip(code: &str, source_path: &str) -> Result<String, ParseError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue