Skip to content

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]

style(proxy): satisfy ruff format in create_views

Yuneng Jiange44804916330
diff --git a/litellm/proxy/db/create_views.py b/litellm/proxy/db/create_views.py
index 6743f30f400..5ea9cba8018 100644
--- a/litellm/proxy/db/create_views.py
+++ b/litellm/proxy/db/create_views.py
@@ -15,6 +15,7 @@ class SupportsExecuteRaw(Protocol):
async def execute_raw(self, query: str, *args: object) -> int: ...
+
# Markers that indicate a view/relation does not yet exist in the database.
# Keeping these in one place avoids repeating the check across all view blocks
# and prevents overly broad matches (e.g. bare 'undefined' would also match
@@ -26,9 +27,7 @@ _VIEW_NOT_FOUND_MARKERS: Final = ("does not exist", "no such table", "undefined
_VIEW_ALREADY_EXISTS_MARKERS: Final = ("already exists", "duplicate object", "duplicate table")
-async def create_view_tolerating_race(
- db: SupportsExecuteRaw, view_name: str, ddl: str
-) -> None:
+async def create_view_tolerating_race(db: SupportsExecuteRaw, view_name: str, ddl: str) -> None:
"""
Create a view, treating "a concurrent creator won" as success.