From 41fa14f8671881b7f47da1fb83f98fbb9f0a1837 Mon Sep 17 00:00:00 2001 From: Neel-K26 Date: Mon, 14 Sep 2026 00:27:13 +0530 Subject: [PATCH] fix(proxy): allow _query_param_aliases in the recursive-function gate The recursive walk over Dependant.dependencies added in the previous commit trips tests/code_coverage_tests/recursive_detector.py, which bans new recursive functions by default. The recursion is bounded by the route's own Depends() tree, fixed at registration time and already resolved acyclically by fastapi's own dependency resolver, so it is safe the same way other allow-listed traversals in this file are. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01N9F4yC8jwZyGxHwb8DoonX --- tests/code_coverage_tests/recursive_detector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/code_coverage_tests/recursive_detector.py b/tests/code_coverage_tests/recursive_detector.py index e9f87ba6cae..2886aee3693 100644 --- a/tests/code_coverage_tests/recursive_detector.py +++ b/tests/code_coverage_tests/recursive_detector.py @@ -67,6 +67,7 @@ IGNORE_FUNCTIONS = [ "_redact_agent_params_tree", # max depth set (default 10), same shape as _redact_sensitive_litellm_params. "_restore_redacted_nested_value", # max depth set (default 10), mirrors _redact_agent_params_tree on the write side. "_unqualified", # bounded by the qualifier depth of a static TypedDict annotation (Annotated, Required/NotRequired, ReadOnly around one type, no cycles possible). + "_query_param_aliases", # bounded by the route's Depends() tree, fixed at registration and already resolved acyclically by fastapi itself. ]