refactor: 优化代码格式,调整多个文件中的换行和缩进

This commit is contained in:
Your Name committed 2026-01-03 19:18:57 +08:00
1 parent 95b4517bdd
commit d100ac0a66
11 files changed
+91 -40

No files matched your search

+4 -1
View File
@@ -5,6 +5,7 @@
python tools/param_usage_tool.py scan --pattern track_param
python tools/param_usage_tool.py tail
"""
from __future__ import annotations
import argparse
@@ -71,7 +72,9 @@ def cmd_show(args: argparse.Namespace) -> int:
top = sorted(by_param.items(), key=lambda kv: -len(kv[1]))[: args.top]
for name, lst in top:
first = lst[0]
print(f"{name}: count={len(lst)} first_at={first.get('caller_file')}:{first.get('caller_line')}")
print(
f"{name}: count={len(lst)} first_at={first.get('caller_file')}:{first.get('caller_line')}"
)
return 0