Remove call when removing final argument from format (#15309)

## Summary

Closes https://github.com/astral-sh/ruff/issues/15303.
This commit is contained in:
Charlie Marsh 2025-01-06 21:53:42 -05:00 committed by GitHub
parent 75a24bbc67
commit 065274d353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 64 additions and 4 deletions

View file

@ -31,3 +31,7 @@
# Multiline
(''
.format(2))
# Removing the final argument.
"Hello".format("world")
"Hello".format("world", key="value")