mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
style(github_copilot): remove Final from loop variables to satisfy basedpyright
This commit is contained in:
parent
1e1377c0a3
commit
1114e1866b
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue