(inputs: Optional[Dict[Text, Any]], graph: Any)
| 105 | |
| 106 | @staticmethod |
| 107 | def _add_inputs_to_graph(inputs: Optional[Dict[Text, Any]], graph: Any) -> None: |
| 108 | if inputs is None: |
| 109 | return |
| 110 | |
| 111 | for input_name, input_value in inputs.items(): |
| 112 | if isinstance(input_value, str) and input_value in graph.keys(): |
| 113 | raise GraphRunError( |
| 114 | f"Input value '{input_value}' clashes with a node name. Make sure " |
| 115 | f"that none of the input names passed to the `run` method are the " |
| 116 | f"same as node names in the graph schema." |
| 117 | ) |
| 118 | graph[input_name] = (input_name, input_value) |
no test coverage detected