Normalize fullwidth punctuation to ASCII across codebase.

Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 23:42:26 +08:00
parent aaa72c7961
commit b733e551a0
392 changed files with 71522 additions and 71369 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
"""Gate 平仓历史匹配fetch_positions_history),供 reconcile / 中控全平同步共用"""
"""Gate 平仓历史匹配(fetch_positions_history),供 reconcile / 中控全平同步共用."""
from __future__ import annotations
@@ -21,8 +21,8 @@ def pick_gate_position_close(
max_close_delta_ms: int = 25 * 60 * 1000,
) -> dict | None:
"""
从 Gate 平仓历史列表中选取与 symbol/direction/开仓时间最匹配的一条
返回 normalize 后的 dict含 close_mspnlsync_key 等),无匹配则 None
从 Gate 平仓历史列表中选取与 symbol/direction/开仓时间最匹配的一条.
返回 normalize 后的 dict(含 close_ms,pnl,sync_key 等),无匹配则 None.
"""
if not hist:
return None