mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
style: Format code with linter
This commit is contained in:
parent
54ea449394
commit
0950106536
1 changed files with 3 additions and 1 deletions
|
@ -902,7 +902,9 @@ class Commands:
|
||||||
image = ImageGrab.grabclipboard()
|
image = ImageGrab.grabclipboard()
|
||||||
if isinstance(image, Image.Image):
|
if isinstance(image, Image.Image):
|
||||||
basename = args.strip() if args.strip() else "clipboard_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")
|
image.save(temp_file.name, "PNG")
|
||||||
temp_file_path = temp_file.name
|
temp_file_path = temp_file.name
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue