From 10fdb26cd1373a975d8cea5e232fff431ec4620b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 17:19:24 -0400 Subject: [PATCH] refactor: Move imports to the top --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 51e2a07d4..cdb9d9ea5 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -9,6 +9,8 @@ from pathlib import Path import git import pyperclip from PIL import Image, ImageGrab +from pypager.pager import Pager +from pypager.source import StringSource from aider import models, prompts, voice from aider.help import Help, install_help_extra @@ -120,8 +122,6 @@ class Commands: def cmd_web(self, args): "Scrape a webpage, convert to markdown and add to the chat" - from pypager.pager import Pager - from pypager.source import StringSource url = args.strip() if not url: