Skip to content

Commit

Permalink
fix: Remove set from port getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Aug 8, 2024
1 parent 495b14c commit 7bc587f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions capellambse_context_diagrams/collectors/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

SourceAndTarget = tuple[common.GenericElement, common.GenericElement]

PHYSICAL_CONNECTOR_ATTR_NAMES = {"physical_ports"}
PHYSICAL_CONNECTOR_ATTR_NAMES = ("physical_ports",)
"""Attribute of PhysicalComponents for receiving connections."""
CONNECTOR_ATTR_NAMES = {"ports", "inputs", "outputs"}
CONNECTOR_ATTR_NAMES = ("ports", "inputs", "outputs")
"""Attribute of GenericElements for receiving connections."""
DIAGRAM_TYPE_TO_CONNECTOR_NAMES: dict[DT, set[str]] = {
DT.OAB: set(),
DT.OAIB: set(),
DT.OCB: set(),
DT.MCB: set(),
DIAGRAM_TYPE_TO_CONNECTOR_NAMES: dict[DT, tuple[str, ...]] = {
DT.OAB: (),
DT.OAIB: (),
DT.OCB: (),
DT.MCB: (),
DT.SAB: CONNECTOR_ATTR_NAMES,
DT.SDFB: CONNECTOR_ATTR_NAMES,
DT.LAB: CONNECTOR_ATTR_NAMES,
DT.LDFB: CONNECTOR_ATTR_NAMES,
DT.PAB: CONNECTOR_ATTR_NAMES | PHYSICAL_CONNECTOR_ATTR_NAMES,
DT.PDFB: CONNECTOR_ATTR_NAMES | PHYSICAL_CONNECTOR_ATTR_NAMES,
DT.PAB: CONNECTOR_ATTR_NAMES + PHYSICAL_CONNECTOR_ATTR_NAMES,
DT.PDFB: CONNECTOR_ATTR_NAMES + PHYSICAL_CONNECTOR_ATTR_NAMES,
}
"""Supported diagram types mapping to the attribute name of connectors."""
MARKER_SIZE = 3
Expand Down

0 comments on commit 7bc587f

Please sign in to comment.