Skip to content

Commit 36c725a

Browse files
author
cellwebb
committed
style: Update string literal quotes for consistency and remove an unused import.
1 parent 6dbb42d commit 36c725a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/clippy/agent/loop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def run_agent_loop(
151151
if spinner:
152152
spinner.stop()
153153
spinner = None
154-
154+
155155
response = _process_streaming_response(
156156
config.provider, conversation_history, tools, config.model, config.console
157157
)
@@ -319,7 +319,7 @@ def _process_streaming_response(
319319
# Print the chunk directly for real-time display
320320
# Strip only leading newlines to prevent content appearing on wrong line
321321
# but preserve other whitespace like spaces between words
322-
display_content = chunk["content"].lstrip('\n\r')
322+
display_content = chunk["content"].lstrip("\n\r")
323323
console.print(escape(display_content), end="")
324324
accumulated_content += chunk["content"]
325325
elif chunk.get("content") and not chunk.get("delta"):
@@ -328,7 +328,7 @@ def _process_streaming_response(
328328
if not accumulated_content:
329329
# Strip only leading newlines to prevent content appearing on wrong line
330330
# but preserve other whitespace like spaces between words
331-
display_content = chunk["content"].lstrip('\n\r')
331+
display_content = chunk["content"].lstrip("\n\r")
332332
console.print(escape(display_content), end="")
333333
accumulated_content = chunk["content"]
334334
elif not chunk.get("delta"):

src/clippy/providers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
create_provider,
1919
)
2020
from .llm.base import BaseProvider
21-
from .llm.errors import LLMError
2221

2322
if TYPE_CHECKING:
2423
from .models import ProviderConfig

0 commit comments

Comments
 (0)