From 8fbe3dc537b6152f37726ebc7a0f2778186575ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E5=A6=AE=E7=9A=84=E5=BF=83=E5=8A=A8=E5=BD=95?= <74543653+anneheartrecord@users.noreply.github.com> Date: Wed, 17 Jun 2026 19:12:14 +0800 Subject: [PATCH] fix(init): add bool type annotation to suppress_debug_info (#30531) Module-level `suppress_debug_info = False` had no annotation, so strict type checkers (e.g. ty) infer it as `Literal[False]`. Reassigning it to `True` (as done in proxy_server.py and router.py) then fails with an invalid-assignment error. Annotate it as `bool` to match every other flag in this module. --- litellm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index 0d6a788e368..9b48e7382f0 100644 --- a/litellm/__init__.py +++ b/litellm/__init__.py @@ -413,7 +413,7 @@ anthropic_beta_headers_url: str = os.getenv( "LITELLM_ANTHROPIC_BETA_HEADERS_URL", "https://raw.githubusercontent.com/BerriAI/litellm/main/litellm/anthropic_beta_headers_config.json", ) -suppress_debug_info = False +suppress_debug_info: bool = False dynamodb_table_name: Optional[str] = None s3_callback_params: Optional[Dict] = None s3_audit_callback_params: Optional[Dict] = None