fixup! fixup! [Pather / RenderPather] move common functionality into PatherMixin; redo hierarchy

This commit is contained in:
Jan Petykiewicz 2025-11-12 17:38:46 -08:00
parent ace34aa7a3
commit ba7fab6db2

View File

@ -345,6 +345,17 @@ class RenderPather(PortList, PatherMixin):
return self
def plugged(
self,
connections: dict[str, str],
) -> Self:
for aa, bb in connections.items():
porta = self.ports[aa]
portb = self.ports[bb]
self.paths[aa].append(RenderStep('P', None, porta.copy(), porta.copy(), None))
self.paths[bb].append(RenderStep('P', None, portb.copy(), portb.copy(), None))
PortList.plugged(self, connections)
return self
def path(
self,