test(router): annotate return types of team cooldown test helpers

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yassin 2026-09-13 09:50:12 +00:00
parent 9080f0904a
commit e41b3bd13f
2 changed files with 5 additions and 5 deletions

View file

@ -440,10 +440,8 @@ class TestRoutingGroupCooldownAlternatives:
class TestTeamModelCooldownAlternatives:
def _router(self, team_deployments: int, blocked_ids: frozenset[str] = frozenset()):
from litellm import Router
return Router(
def _router(self, team_deployments: int, blocked_ids: frozenset[str] = frozenset()) -> litellm.Router:
return litellm.Router(
model_list=[
{
"model_name": f"model_name_team-1_{i}",

View file

@ -897,7 +897,9 @@ def test_arouter_test_team_model():
def test_team_model_has_alternatives():
def team_deployment(deployment_id: str, team_id: str, public_model_name: str, blocked: bool = False):
def team_deployment(
deployment_id: str, team_id: str, public_model_name: str, blocked: bool = False
) -> DeploymentTypedDict:
return {
"model_name": f"model_name_{team_id}_{deployment_id}",
"litellm_params": {"model": "openai/gpt-4o-mini", "api_key": "sk-test"},