style: Format code with linter

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 07:55:42 -03:00
parent 54ea449394
commit 0950106536

View file

@ -902,7 +902,9 @@ class Commands:
image = ImageGrab.grabclipboard()
if isinstance(image, Image.Image):
basename = args.strip() if args.strip() else "clipboard_image"
with tempfile.NamedTemporaryFile(prefix=f"{basename}_", suffix=".png", delete=False) as temp_file:
with tempfile.NamedTemporaryFile(
prefix=f"{basename}_", suffix=".png", delete=False
) as temp_file:
image.save(temp_file.name, "PNG")
temp_file_path = temp_file.name