Skip to content

Commit

Permalink
fix graph type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jan 7, 2025
1 parent bee47e5 commit a2f0f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/typed_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ def use_double(node: BaseNode[None, X]) -> None:
# because String2Length came before Double, the output type is Any
assert_type(g3, Graph[None, X])

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

0 comments on commit a2f0f1a

Please sign in to comment.