Create a NodeSignature from input/output dicts of name -> type.
(cls, inputs, outputs)
| 155 | |
| 156 | @classmethod |
| 157 | def create(cls, inputs, outputs): |
| 158 | '''Create a NodeSignature from input/output dicts of name -> type.''' |
| 159 | return cls( |
| 160 | inputs=tuple(sorted(inputs.items())), |
| 161 | outputs=tuple(sorted(outputs.items())), |
| 162 | _displayInputs=tuple(inputs.items()), |
| 163 | _displayOutputs=tuple(outputs.items()), |
| 164 | ) |
| 165 | |
| 166 | def __hash__(self): |
| 167 | return hash((self.inputs, self.outputs)) |