mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(claude-code): suppress typed marketplace assembly warning
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
bff08db638
commit
e90116e42e
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue