From 6de98912d325cacfe40db8396cf28c4a36bb8a72 Mon Sep 17 00:00:00 2001 From: OrangerXu Date: Wed, 14 Oct 2026 17:23:48 +0800 Subject: [PATCH] style: ruff format the normalization helper --- litellm/proxy/pass_through_endpoints/jsonpath_extractor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py b/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py index bc01fa8f85f..6136c05cec6 100644 --- a/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py +++ b/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py @@ -21,9 +21,7 @@ def _normalize_wildcard_segments(expr: str) -> tuple[str, ...]: nested-wildcard expression is silently dropped and skips the guardrail (#46302). """ - segments: Final = tuple( - segment for segment in expr.replace("[*]", ".[*]").split(".") if segment - ) + segments: Final = tuple(segment for segment in expr.replace("[*]", ".[*]").split(".") if segment) return segments