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:
konstin 2023-06-22 10:59:30 +02:00 committed by GitHub
parent 2c63f8cdea
commit 7d4f8e59da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 403 additions and 374 deletions

View file

@ -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();