File size: 297 Bytes
d868fac
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from __future__ import annotations
from dataclasses import dataclass
from .nodes_base import NodeInstance
from .ports import PortState


@dataclass(slots=True, frozen=True)
class Connection:
    start_node: NodeInstance
    start_port: PortState
    end_node: NodeInstance
    end_port: PortState