Method
substitute
(
self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None
)
Source from the content-addressed store, hash-verified
| 607 | return (type(self).__name__, tokenize(self.value)) |
| 608 | |
| 609 | def substitute( |
| 610 | self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None |
| 611 | ) -> DataNode: |
| 612 | if key is not None and key != self.key: |
| 613 | return DataNode(key, self.value) |
| 614 | return self |
| 615 | |
| 616 | def __iter__(self): |
| 617 | return iter(self.value) |
Callers
nothing calls this directly
Tested by
no test coverage detected