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 -4
View File
@@ -49,7 +49,9 @@ def _node_contains_return(node: ast.AST) -> bool:
# 不进入嵌套函数
return
def visit_AsyncFunctionDef(self, _n: ast.AsyncFunctionDef) -> None: # noqa: N802
def visit_AsyncFunctionDef(
self, _n: ast.AsyncFunctionDef
) -> None: # noqa: N802
return
def visit_Lambda(self, _n: ast.Lambda) -> None: # noqa: N802
@@ -137,9 +139,7 @@ def _check() -> tuple[bool, int]:
lineno = getattr(enclosing_if, "lineno", -1)
raise _FoundBlock(has_return=has_return, lineno=lineno)
raise RuntimeError(
f"未找到目标分支:{TARGET_LOG_SNIPPET}(文件:{TARGET_FILE})"
)
raise RuntimeError(f"未找到目标分支:{TARGET_LOG_SNIPPET}(文件:{TARGET_FILE})")
def main() -> None: