Skip to content

Commit a2f0f1a

Browse files
committed
fix graph type checking
1 parent bee47e5 commit a2f0f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/typed_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ def use_double(node: BaseNode[None, X]) -> None:
7070
# because String2Length came before Double, the output type is Any
7171
assert_type(g3, Graph[None, X])
7272

73-
Graph[None, bytes](Float2String, String2Length, Double) # type: ignore[arg-type]
74-
Graph[None, str](Double) # type: ignore[arg-type]
73+
Graph[None, bytes](nodes=(Float2String, String2Length, Double)) # type: ignore[arg-type]
74+
Graph[None, str](nodes=[Double]) # type: ignore[list-item]

0 commit comments

Comments
 (0)