mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(mcp): annotate the general_settings cast for the type-discipline gate
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
6adff6ffac
commit
265919f9a9
1 changed files with 6 additions and 1 deletions
|
|
@ -125,7 +125,12 @@ def jwt_auth_issuers() -> tuple[str, ...]:
|
|||
env_issuer: Final = os.getenv("JWT_ISSUER")
|
||||
env: Final[tuple[str, ...]] = (env_issuer,) if env_issuer else ()
|
||||
|
||||
settings: Final[Mapping[str, object]] = cast(Mapping[str, object], general_settings)
|
||||
settings: Final = (
|
||||
cast( # cast-ok: general_settings is a raw dict; the value is validated by _jwt_auth_issuer_entries
|
||||
Mapping[str, object],
|
||||
general_settings,
|
||||
)
|
||||
)
|
||||
configured: Final = tuple(
|
||||
entry.issuer for entry in _jwt_auth_issuer_entries(settings.get("litellm_jwtauth")) if entry.issuer
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue