From e90116e42e4e801db88b1192aa48156cfd6126a4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 16 Sep 2026 16:34:26 +0000 Subject: [PATCH] fix(claude-code): suppress typed marketplace assembly warning Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../claude_code_endpoints/claude_code_marketplace.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py b/litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py index fdd37d6f7d1..8832cfdc9ce 100644 --- a/litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py +++ b/litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py @@ -160,9 +160,10 @@ async def get_marketplace(request: Request, key: str | None = None): entry["keywords"] = manifest["keywords"] if "category" in manifest: entry["category"] = manifest["category"] - installation_preference: Final[str | None] = _get_manifest_string(manifest, "installation_preference") - if installation_preference is not None: - entry["installationPreference"] = installation_preference + if (installation_preference := _get_manifest_string(manifest, "installation_preference")) is not None: + entry["installationPreference"] = ( # pyright: ignore[reportTypedDictNotRequiredAccess] # assembled incrementally + installation_preference + ) plugin_list.append(entry)