From 1114e1866b1e50583150948320331885a6623659 Mon Sep 17 00:00:00 2001 From: yyouretoast Date: Wed, 26 Aug 2026 16:10:41 +0400 Subject: [PATCH] style(github_copilot): remove Final from loop variables to satisfy basedpyright --- litellm/llms/github_copilot/authenticator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py index 148367ac010..fe67c20921f 100644 --- a/litellm/llms/github_copilot/authenticator.py +++ b/litellm/llms/github_copilot/authenticator.py @@ -67,7 +67,7 @@ class Authenticator: for attempt in range(3): verbose_logger.debug("Access token acquisition attempt %s/3", attempt + 1) try: - new_token: Final = self._login() + new_token = self._login() # rebind-ok: loop variable try: self._ensure_token_dir() with open(self.access_token_file, "w") as f: @@ -206,11 +206,11 @@ class Authenticator: max_retries: Final = 3 for attempt in range(max_retries): try: - sync_client: Final = _get_httpx_client() - response: Final = sync_client.get(api_key_url, headers=headers) + sync_client = _get_httpx_client() # rebind-ok: loop variable + response = sync_client.get(api_key_url, headers=headers) # rebind-ok: loop variable response.raise_for_status() - response_json: Final = response.json() + response_json = response.json() # rebind-ok: loop variable if isinstance(response_json, dict) and "token" in response_json: return response_json