From 8df7bd40ad4ec423560c3d84711a753f183dd7a7 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 02:26:56 +0800 Subject: [PATCH] refactor(agent): type sanitizer container delimiter stack --- app/agent/policy/sanitizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/agent/policy/sanitizer.py b/app/agent/policy/sanitizer.py index b2e36aac0..ea20fdbcc 100644 --- a/app/agent/policy/sanitizer.py +++ b/app/agent/policy/sanitizer.py @@ -226,7 +226,7 @@ def _unquoted_assignment_value_end( outer_quote: str, ) -> int: """线性扫描未引号值,仅在容器外识别字段分隔符。""" - stack = [] + stack: list[str] = [] cursor = value_start while cursor < len(value): char = value[cursor]