From 785f53f2ecc4e5e10ba4b18501bd7d5c61078c0b Mon Sep 17 00:00:00 2001 From: jtstothard Date: Tue, 21 Apr 2026 16:17:24 +0100 Subject: [PATCH] fix: wrap long lines in authenticator.py for Black formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Split f-string on line 185 (98 chars → 2 lines) - Split f-string on line 374 (91 chars → 2 lines) Co-Authored-By: Claude Sonnet 4.6 --- litellm/llms/github_copilot/authenticator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py index 9de2987b9f6..7d18263a4e5 100644 --- a/litellm/llms/github_copilot/authenticator.py +++ b/litellm/llms/github_copilot/authenticator.py @@ -182,7 +182,8 @@ class Authenticator: ) except httpx.HTTPStatusError as e: verbose_logger.error( - f"HTTP error refreshing API key (attempt {attempt+1}/{max_retries}): {str(e)}" + f"HTTP error refreshing API key (attempt {attempt+1}/" + f"{max_retries}): {str(e)}" ) except Exception as e: verbose_logger.error(f"Unexpected error refreshing API key: {str(e)}") @@ -368,7 +369,8 @@ class Authenticator: verification_uri = device_code_info["verification_uri"] print( # noqa: T201 - f"Please visit {verification_uri} and enter code {user_code} to authenticate.", + f"Please visit {verification_uri} and enter code {user_code} " + f"to authenticate.", # When this is running in docker, it may not be flushed immediately # so we force flush to ensure the user sees the message flush=True,