mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-22 20:45:11 +00:00
Improve FormatExprCall dummy (#5290)
This solves an instability when formatting cpython. It also introduces another one, but i think it's still a worthwhile change for now. There's no proper testing since this is just a dummy.
This commit is contained in:
parent
2c63f8cdea
commit
7d4f8e59da
37 changed files with 403 additions and 374 deletions
|
@ -247,12 +247,12 @@ mod tests {
|
|||
let input = r#"
|
||||
# preceding
|
||||
if True:
|
||||
print( "hi" )
|
||||
pass
|
||||
# trailing
|
||||
"#;
|
||||
let expected = r#"# preceding
|
||||
if True:
|
||||
NOT_IMPLEMENTED_call()
|
||||
pass
|
||||
# trailing
|
||||
"#;
|
||||
let actual = format_module(input)?.as_code().to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue