From 7f8dcee068f8c895aeda6e4afeb8d168101d09d3 Mon Sep 17 00:00:00 2001 From: Prince Thummar Date: Thu, 3 Sep 2026 20:12:40 +0530 Subject: [PATCH] fix(lint): satisfy ruff strict budget by removing banned Any import and annotations --- litellm/models/end_user.py | 4 ++-- litellm/models/tag.py | 3 +-- litellm/models/user.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/litellm/models/end_user.py b/litellm/models/end_user.py index 3f711a31cfd..efc7f9ef2ed 100644 --- a/litellm/models/end_user.py +++ b/litellm/models/end_user.py @@ -5,7 +5,7 @@ Canonical definition for ``litellm_endusertable``. Re-exported from ``litellm.proxy._types`` for backwards compatibility. """ -from typing import Any, Literal +from typing import Literal from pydantic import BaseModel, ConfigDict, model_validator @@ -28,7 +28,7 @@ class LiteLLM_EndUserTable(LiteLLMPydanticObjectBase): @model_validator(mode="before") @classmethod - def set_model_info(cls, values: Any) -> Any: + def set_model_info(cls, values): if isinstance(values, BaseModel): normalized = values.model_dump() elif hasattr(values, "__dict__") and not isinstance(values, dict): diff --git a/litellm/models/tag.py b/litellm/models/tag.py index b2da9f4642a..cefb0bf7b28 100644 --- a/litellm/models/tag.py +++ b/litellm/models/tag.py @@ -6,7 +6,6 @@ Canonical definition for ``litellm_tagtable``. Re-exported from """ from datetime import datetime -from typing import Any from pydantic import BaseModel, model_validator @@ -28,7 +27,7 @@ class LiteLLM_TagTable(LiteLLMPydanticObjectBase): @model_validator(mode="before") @classmethod - def set_model_info(cls, values: Any) -> Any: + def set_model_info(cls, values): if isinstance(values, BaseModel): normalized = values.model_dump() elif hasattr(values, "__dict__") and not isinstance(values, dict): diff --git a/litellm/models/user.py b/litellm/models/user.py index e2aeadda793..766947b8a0d 100644 --- a/litellm/models/user.py +++ b/litellm/models/user.py @@ -6,7 +6,6 @@ Canonical definition for ``litellm_usertable``. Re-exported from """ from datetime import datetime -from typing import Any from pydantic import BaseModel, ConfigDict, Field, model_validator @@ -50,7 +49,7 @@ class LiteLLM_UserTable(LiteLLMPydanticObjectBase): @model_validator(mode="before") @classmethod - def set_model_info(cls, values: Any) -> Any: + def set_model_info(cls, values): if isinstance(values, BaseModel): normalized = values.model_dump() elif hasattr(values, "__dict__") and not isinstance(values, dict):