From cd133f95ee1ba033970fa7df2f1b9006f2b1d824 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 28 Oct 2024 14:27:26 -0700 Subject: [PATCH] style: fix linting issues with whitespace and line breaks --- aider/sendchat.py | 1 + tests/basic/test_sendchat.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/aider/sendchat.py b/aider/sendchat.py index d0baf55e4..1a27c1a25 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -15,6 +15,7 @@ CACHE = None RETRY_TIMEOUT = 60 + def retry_exceptions(): import httpx diff --git a/tests/basic/test_sendchat.py b/tests/basic/test_sendchat.py index 8c73c51ca..fe6c46fd6 100644 --- a/tests/basic/test_sendchat.py +++ b/tests/basic/test_sendchat.py @@ -10,11 +10,14 @@ from aider.sendchat import simple_send_with_retries class PrintCalled(Exception): pass + class TestSendChat(unittest.TestCase): def test_retry_exceptions(self): """Test that retry_exceptions() can be called without raising errors""" from aider.sendchat import retry_exceptions + retry_exceptions() # Should not raise any exceptions + @patch("litellm.completion") @patch("builtins.print") def test_simple_send_with_retries_rate_limit_error(self, mock_print, mock_completion):