refactor: Move imports to the top

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 17:19:24 -04:00
parent 8cf26407b9
commit 10fdb26cd1

View file

@ -9,6 +9,8 @@ from pathlib import Path
import git import git
import pyperclip import pyperclip
from PIL import Image, ImageGrab from PIL import Image, ImageGrab
from pypager.pager import Pager
from pypager.source import StringSource
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
@ -120,8 +122,6 @@ class Commands:
def cmd_web(self, args): def cmd_web(self, args):
"Scrape a webpage, convert to markdown and add to the chat" "Scrape a webpage, convert to markdown and add to the chat"
from pypager.pager import Pager
from pypager.source import StringSource
url = args.strip() url = args.strip()
if not url: if not url: