Skip to content

Commit 87d308f

Browse files
committed
Add correct arrow type for dot printer
1 parent aef07ca commit 87d308f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylint/pyreverse/dot_printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HTMLLabels(Enum):
3939
EdgeType.ASSOCIATION: {
4040
"fontcolor": "green",
4141
"arrowtail": "none",
42-
"arrowhead": "normal",
42+
"arrowhead": "vee",
4343
"style": "solid",
4444
},
4545
EdgeType.AGGREGATION: {

tests/pyreverse/functional/class_diagrams/annotations/attributes_annotation.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ rankdir=BT
33
charset="utf-8"
44
"attributes_annotation.Dummy" [color="black", fontcolor="black", label=<{Dummy|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"];
55
"attributes_annotation.Dummy2" [color="black", fontcolor="black", label=<{Dummy2|alternative_optional : int \| None<br ALIGN="LEFT"/>alternative_optional_swapped : None \| int<br ALIGN="LEFT"/>alternative_union_syntax : str \| int<br ALIGN="LEFT"/>class_attr : list[Dummy]<br ALIGN="LEFT"/>optional : Optional[Dummy]<br ALIGN="LEFT"/>optional_union : Optional[int \| str]<br ALIGN="LEFT"/>param : str<br ALIGN="LEFT"/>union : Union[int, str]<br ALIGN="LEFT"/>|}>, shape="record", style="solid"];
6-
"attributes_annotation.Dummy" -> "attributes_annotation.Dummy2" [arrowhead="normal", arrowtail="none", fontcolor="green", label="optional", style="solid"];
6+
"attributes_annotation.Dummy" -> "attributes_annotation.Dummy2" [arrowhead="vee", arrowtail="none", fontcolor="green", label="optional", style="solid"];
77
}

0 commit comments

Comments
 (0)