style: format imports in commands.py

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 07:54:15 -03:00
parent 96a4ba783b
commit 1e3868e3d0

View file

@ -8,7 +8,7 @@ from pathlib import Path
import git import git
import pyperclip import pyperclip
from PIL import ImageGrab, Image from PIL import Image, ImageGrab
from aider import models, prompts, voice from aider import models, prompts, voice
from aider.help import Help, install_help_extra from aider.help import Help, install_help_extra
@ -911,14 +911,14 @@ class Commands:
self.coder.check_added_files() self.coder.check_added_files()
return prompts.added_files.format(fnames=str(abs_file_path)) return prompts.added_files.format(fnames=str(abs_file_path))
# If not an image, try to get text # If not an image, try to get text
text = pyperclip.paste() text = pyperclip.paste()
if text: if text:
self.io.tool_output("Text content found in clipboard:") self.io.tool_output("Text content found in clipboard:")
self.io.tool_output(text) self.io.tool_output(text)
return text return text
self.io.tool_error("No image or text content found in clipboard.") self.io.tool_error("No image or text content found in clipboard.")
return return