Skip to content

Commit 19ae424

Browse files
committed
Update all the printers to emit the right arrow types
1 parent 54fd26b commit 19ae424

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

pylint/pyreverse/dot_printer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ class HTMLLabels(Enum):
3030
# pylint: disable-next=consider-using-namedtuple-or-dataclass
3131
ARROWS: dict[EdgeType, dict[str, str]] = {
3232
EdgeType.INHERITS: {"arrowtail": "none", "arrowhead": "empty"},
33-
EdgeType.ASSOCIATION: {
33+
EdgeType.COMPOSITION: {
3434
"fontcolor": "green",
3535
"arrowtail": "none",
3636
"arrowhead": "diamond",
3737
"style": "solid",
3838
},
39+
EdgeType.ASSOCIATION: {
40+
"fontcolor": "green",
41+
"arrowtail": "none",
42+
"arrowhead": "none",
43+
"style": "solid",
44+
},
3945
EdgeType.AGGREGATION: {
4046
"fontcolor": "green",
4147
"arrowtail": "none",

pylint/pyreverse/mermaidjs_printer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class MermaidJSPrinter(Printer):
2121
}
2222
ARROWS: dict[EdgeType, str] = {
2323
EdgeType.INHERITS: "--|>",
24-
EdgeType.ASSOCIATION: "--*",
24+
EdgeType.COMPOSITION: "--*",
25+
EdgeType.ASSOCIATION: "-->",
2526
EdgeType.AGGREGATION: "--o",
2627
EdgeType.USES: "-->",
2728
EdgeType.TYPE_DEPENDENCY: "..>",

pylint/pyreverse/plantuml_printer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class PlantUmlPrinter(Printer):
2121
}
2222
ARROWS: dict[EdgeType, str] = {
2323
EdgeType.INHERITS: "--|>",
24-
EdgeType.ASSOCIATION: "--*",
24+
EdgeType.ASSOCIATION: "-->",
25+
EdgeType.COMPOSITION: "--*",
2526
EdgeType.AGGREGATION: "--o",
2627
EdgeType.USES: "-->",
2728
EdgeType.TYPE_DEPENDENCY: "..>",

0 commit comments

Comments
 (0)