fix(proxy): clear basedpyright findings in budget window code

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
jesus 2026-09-18 02:15:04 +00:00
parent f09391f20b
commit 62aea833b4
2 changed files with 2 additions and 2 deletions

View file

@ -5540,7 +5540,7 @@ async def _user_multi_budget_check(
"""
if valid_token is None or not valid_token.user_budget_limits or valid_token.user_id is None:
return
is_team_key: Final = team_object is not None and team_object.team_id is not None
is_team_key: Final = team_object is not None and bool(team_object.team_id)
if is_team_key and general_settings.get("apply_user_budget_to_team_keys") is not True:
return

View file

@ -57,7 +57,7 @@ def validate_budget_limits(budget_limits: Sequence[object] | None, status_code:
for entry in budget_limits
)
for window in windows:
error: Final = budget_duration_error(window.budget_duration)
error = budget_duration_error(window.budget_duration)
if error is not None:
raise HTTPException(
status_code=status_code,