We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Archmonger
rmorshea
Learn more about funding links in repositories.
Report abuse
1 parent 9afb219 commit 42eb96dCopy full SHA for 42eb96d
src/idom/_console/rewrite_key_declarations.py
@@ -139,7 +139,7 @@ def find_nodes_to_change(tree: ast.AST) -> list[Sequence[ast.AST]]:
139
140
141
def rewrite_changed_nodes(
142
- file: str,
+ file: Path,
143
source: str,
144
tree: ast.AST,
145
changed: list[Sequence[ast.AST]],
@@ -210,7 +210,7 @@ def rewrite_changed_nodes(
210
return "\n".join(lines)
211
212
213
-def log_could_not_rewrite(file: str, tree: ast.AST) -> None:
+def log_could_not_rewrite(file: Path, tree: ast.AST) -> None:
214
for node in ast.walk(tree):
215
if not (isinstance(node, ast.Call) and node.keywords):
216
continue
0 commit comments