From e267dc13afc840c20fcecbabc4c2e54020938c48 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 24 Sep 2024 09:28:28 -0700 Subject: [PATCH] fix: Move imports to top of file --- aider/voice.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/aider/voice.py b/aider/voice.py index aca5995ae..c60dee69d 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -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