The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor(test): tighten typing on the tag list verification token double
Yuneng Jiangd9f53258e9f3
diff --git a/tests/test_litellm/proxy/management_endpoints/test_tag_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_tag_management_endpoints.pyindex 9927c56b847..4fe1b54694f 100644--- a/tests/test_litellm/proxy/management_endpoints/test_tag_management_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_tag_management_endpoints.py@@ -2,7 +2,8 @@ import inspectimport jsonimport osimport sys-from typing import Any, Dict, List, Optional+from collections.abc import Sequence+from typing import Optionalimport pytestfrom fastapi import HTTPException@@ -13,7 +14,7 @@ sys.path.insert(0, os.path.abspath("../../../..")) # Adds the parent directory to the system path-from unittest.mock import patch+from unittest.mock import Mock, patchimport litellmfrom litellm.proxy._types import LitellmUserRoles, UserAPIKeyAuth@@ -33,11 +34,11 @@ class FakeVerificationTokenTable:surfaces as an HTTP 500."""- def __init__(self, records: List[Any]):- self._records = records- self.calls: List[Dict[str, Any]] = []+ def __init__(self, records: Sequence[Mock]):+ self._records = tuple(records)+ self.calls: list[dict[str, object]] = []- async def find_many(self, **kwargs: Any) -> List[Any]:+ async def find_many(self, **kwargs: object) -> tuple[Mock, ...]:inspect.signature(LiteLLM_VerificationTokenActions.find_many).bind(self, **kwargs)