@@ -320,11 +320,11 @@ def remove(self, node: NodeProtocol, /) -> None:
320
320
"""Remove a node from the graph."""
321
321
...
322
322
323
- def insert_after (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ], / ) -> None :
323
+ def insert_after (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ] | NodeProtocol , / ) -> None :
324
324
"""Insert new nodes after the given node."""
325
325
...
326
326
327
- def insert_before (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ], / ) -> None :
327
+ def insert_before (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ] | NodeProtocol , / ) -> None :
328
328
"""Insert new nodes before the given node."""
329
329
...
330
330
@@ -589,11 +589,11 @@ def remove(self, node: NodeProtocol, /) -> None:
589
589
"""Remove a node from the function."""
590
590
...
591
591
592
- def insert_after (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ], / ) -> None :
592
+ def insert_after (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ] | NodeProtocol , / ) -> None :
593
593
"""Insert new nodes after the given node."""
594
594
...
595
595
596
- def insert_before (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ], / ) -> None :
596
+ def insert_before (self , node : NodeProtocol , new_nodes : Iterator [NodeProtocol ] | NodeProtocol , / ) -> None :
597
597
"""Insert new nodes before the given node."""
598
598
...
599
599
0 commit comments