chore: apply ruff auto-fixes and remove dead AST scripts
This commit is contained in:
@@ -414,7 +414,7 @@ def py_set_signature(path: str, name: str, new_signature: str) -> str:
|
||||
try:
|
||||
import ast
|
||||
code = p.read_text(encoding="utf-8").lstrip(chr(0xFEFF))
|
||||
lines = code.splitlines(keepends=True)
|
||||
code.splitlines(keepends=True)
|
||||
tree = ast.parse(code)
|
||||
node = _get_symbol_node(tree, name)
|
||||
if not node or not isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
|
||||
|
||||
Reference in New Issue
Block a user