Method
__init__
(self, name: str, inputs: Optional[List["DAGNode"]] = None)
Source from the content-addressed store, hash-verified
| 11 | outputs: List["DAGNode"] |
| 12 | |
| 13 | def __init__(self, name: str, inputs: Optional[List["DAGNode"]] = None): |
| 14 | self.name = name |
| 15 | self.inputs: List["DAGNode"] = [] |
| 16 | self.outputs: List["DAGNode"] = [] |
| 17 | |
| 18 | for node in inputs or []: |
| 19 | self.add_input(node) |
| 20 | |
| 21 | def add_input(self, node: "DAGNode"): |
| 22 | if node in self.inputs: |
Callers
nothing calls this directly
Tested by
no test coverage detected