mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
About 35,000 fixes ruff marks safe across 32 rules (UP006/UP045/UP007 modern annotations, UP032 f-strings, SIM114/SIM118, RET501, and friends), removal of the 1,296 typing imports the rewrite orphaned, and hand fixes for what the fixers could not see: five star-import freeloaders of typing names, two F823 late-import annotations, the /get/config/list introspection crash on types.UnionType, redundant function-local RoleMappings imports in ui_sso.py that shadowed the module-level name once the annotation lost its quotes, and one FURB168 tautology. B009/B010/PIE804/RUF019 are excluded on purpose: their safe fixes rewrite getattr/setattr/**-splat/key-in-dict escape hatches into forms basedpyright then rejects (283 new errors measured), so their budgets stay at base values. ruff-strict-budget.json drops by 39,579 this commit (39,968 across the branch) with 28 rules at an actual 0 and 9 more sharply down. type-discipline-budget.json ratchets LIT002/LIT006/LIT009 down; LIT001 moves to the now-honest total: the checker matches the spelling `set` but not the alias `Set`, so the 160 typing.Set annotations rewritten to set[...] were always mutable-set annotations and only now count.
66 lines
2.2 KiB
Python
66 lines
2.2 KiB
Python
"""
|
|
Domain models for LiteLLM backend.
|
|
"""
|
|
|
|
from litellm.models.access_group import LiteLLM_AccessGroupTable
|
|
from litellm.models.budget import (
|
|
LiteLLM_BudgetTable,
|
|
LiteLLM_BudgetTableFull,
|
|
LiteLLM_TeamMemberTable,
|
|
)
|
|
from litellm.models.config import LiteLLM_Config
|
|
from litellm.models.credentials import (
|
|
CreateCredentialItem,
|
|
CredentialBase,
|
|
CredentialItem,
|
|
)
|
|
from litellm.models.end_user import LiteLLM_EndUserTable
|
|
from litellm.models.managed_files import (
|
|
LiteLLM_ManagedFileTable,
|
|
LiteLLM_ManagedObjectTable,
|
|
LiteLLM_ManagedVectorStoresTable,
|
|
LiteLLM_ManagedVectorStoreTable,
|
|
)
|
|
from litellm.models.mcp_server import LiteLLM_MCPServerTable
|
|
from litellm.models.model import LiteLLM_ProxyModelTable
|
|
from litellm.models.object_permission import LiteLLM_ObjectPermissionTable
|
|
from litellm.models.organization import LiteLLM_OrganizationTable
|
|
from litellm.models.organization_membership import LiteLLM_OrganizationMembershipTable
|
|
from litellm.models.project import LiteLLM_ProjectTable
|
|
from litellm.models.skills import LiteLLM_SkillsTable
|
|
from litellm.models.spend_logs import LiteLLM_ErrorLogs, LiteLLM_SpendLogs
|
|
from litellm.models.tag import LiteLLM_TagTable
|
|
from litellm.models.team import LiteLLM_TeamTable
|
|
from litellm.models.team_membership import LiteLLM_TeamMembership
|
|
from litellm.models.user import LiteLLM_UserTable
|
|
from litellm.models.verification_token import LiteLLM_VerificationToken
|
|
|
|
__all__ = [
|
|
"CreateCredentialItem",
|
|
"CredentialBase",
|
|
"CredentialItem",
|
|
"LiteLLM_AccessGroupTable",
|
|
"LiteLLM_BudgetTable",
|
|
"LiteLLM_BudgetTableFull",
|
|
"LiteLLM_Config",
|
|
"LiteLLM_EndUserTable",
|
|
"LiteLLM_ErrorLogs",
|
|
"LiteLLM_MCPServerTable",
|
|
"LiteLLM_ManagedFileTable",
|
|
"LiteLLM_ManagedObjectTable",
|
|
"LiteLLM_ManagedVectorStoreTable",
|
|
"LiteLLM_ManagedVectorStoresTable",
|
|
"LiteLLM_ObjectPermissionTable",
|
|
"LiteLLM_OrganizationMembershipTable",
|
|
"LiteLLM_OrganizationTable",
|
|
"LiteLLM_ProjectTable",
|
|
"LiteLLM_ProxyModelTable",
|
|
"LiteLLM_SkillsTable",
|
|
"LiteLLM_SpendLogs",
|
|
"LiteLLM_TagTable",
|
|
"LiteLLM_TeamMemberTable",
|
|
"LiteLLM_TeamMembership",
|
|
"LiteLLM_TeamTable",
|
|
"LiteLLM_UserTable",
|
|
"LiteLLM_VerificationToken",
|
|
]
|