@@ -306,7 +306,7 @@ def task_example_2(path=Path("in_2.txt"), produces=Path("out_2.txt")): ...
306306
307307@define
308308class Node :
309- path : Path
309+ path : str
310310
311311 def state (self ): ...
312312
@@ -321,8 +321,8 @@ def test_print_collected_tasks_without_nodes(capsys):
321321 base_name = "function" ,
322322 path = Path ("task_path.py" ),
323323 function = function ,
324- depends_on = {"depends_on" : Node ("in.txt" )}, # type: ignore[arg-type]
325- produces = {"produces" : Node ("out.txt" )}, # type: ignore[arg-type]
324+ depends_on = {"depends_on" : Node ("in.txt" )},
325+ produces = {"produces" : Node ("out.txt" )},
326326 )
327327 ]
328328 }
@@ -343,8 +343,8 @@ def test_print_collected_tasks_with_nodes(capsys):
343343 base_name = "function" ,
344344 path = Path ("task_path.py" ),
345345 function = function ,
346- depends_on = {"depends_on" : PathNode (name = "in.txt" , path = Path ("in.txt" ))}, # type: ignore[arg-type]
347- produces = {"produces" : PathNode (name = "out.txt" , path = Path ("out.txt" ))}, # type: ignore[arg-type]
346+ depends_on = {"depends_on" : PathNode (name = "in.txt" , path = Path ("in.txt" ))},
347+ produces = {"produces" : PathNode (name = "out.txt" , path = Path ("out.txt" ))},
348348 )
349349 ]
350350 }
@@ -366,10 +366,10 @@ def test_find_common_ancestor_of_all_nodes(show_nodes, expected_add):
366366 base_name = "function" ,
367367 path = Path .cwd () / "src" / "task_path.py" ,
368368 function = function ,
369- depends_on = { # type: ignore[arg-type]
369+ depends_on = {
370370 "depends_on" : PathNode .from_path (Path .cwd () / "src" / "in.txt" )
371371 },
372- produces = { # type: ignore[arg-type]
372+ produces = {
373373 "produces" : PathNode .from_path (
374374 Path .cwd ().joinpath (".." , "bld" , "out.txt" ).resolve ()
375375 )
0 commit comments