fix: Move imports to top of file

This commit is contained in:
Paul Gauthier (aider) 2024-09-24 09:28:28 -07:00
parent d0e6dc2c1e
commit e267dc13af

View file

@ -6,6 +6,9 @@ import time
import warnings
from aider.llm import litellm
from prompt_toolkit.shortcuts import prompt
from pydub import AudioSegment
from .dump import dump # noqa: F401
warnings.filterwarnings(
"ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"
@ -16,11 +19,6 @@ try:
except (OSError, ModuleNotFoundError):
sf = None
from prompt_toolkit.shortcuts import prompt
from pydub import AudioSegment
from .dump import dump # noqa: F401
class SoundDeviceError(Exception):
pass