Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 42eb96d

Browse files
committedFeb 13, 2023
fix types
1 parent 9afb219 commit 42eb96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/idom/_console/rewrite_key_declarations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def find_nodes_to_change(tree: ast.AST) -> list[Sequence[ast.AST]]:
139139

140140

141141
def rewrite_changed_nodes(
142-
file: str,
142+
file: Path,
143143
source: str,
144144
tree: ast.AST,
145145
changed: list[Sequence[ast.AST]],
@@ -210,7 +210,7 @@ def rewrite_changed_nodes(
210210
return "\n".join(lines)
211211

212212

213-
def log_could_not_rewrite(file: str, tree: ast.AST) -> None:
213+
def log_could_not_rewrite(file: Path, tree: ast.AST) -> None:
214214
for node in ast.walk(tree):
215215
if not (isinstance(node, ast.Call) and node.keywords):
216216
continue

0 commit comments

Comments
 (0)
Please sign in to comment.