mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
style: format imports in commands.py
This commit is contained in:
parent
96a4ba783b
commit
1e3868e3d0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue