summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/dot_printer.py
diff options
context:
space:
mode:
authorRobert Hofer <hofrob@protonmail.com>2022-10-30 16:26:07 +0100
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-11-09 20:39:00 +0100
commit0507ee37f45cb3c9dcaf64036dd1b7f3c88ae690 (patch)
tree7ec3b2adc6e9841ec73d7f4aa5ac58ce36e24808 /pylint/pyreverse/dot_printer.py
parent5ae5842fa02021e086d66218d326c708e6433318 (diff)
downloadpylint-git-0507ee37f45cb3c9dcaf64036dd1b7f3c88ae690.tar.gz
Add R1737 use-dict-literal-without-kwargs
Diffstat (limited to 'pylint/pyreverse/dot_printer.py')
-rw-r--r--pylint/pyreverse/dot_printer.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/pylint/pyreverse/dot_printer.py b/pylint/pyreverse/dot_printer.py
index 5ec5858fc..7579d2877 100644
--- a/pylint/pyreverse/dot_printer.py
+++ b/pylint/pyreverse/dot_printer.py
@@ -29,13 +29,17 @@ SHAPES: dict[NodeType, str] = {
NodeType.INTERFACE: "record",
NodeType.CLASS: "record",
}
+# pylint: disable-next=consider-using-namedtuple-or-dataclass
ARROWS: dict[EdgeType, dict[str, str]] = {
- EdgeType.INHERITS: dict(arrowtail="none", arrowhead="empty"),
- EdgeType.IMPLEMENTS: dict(arrowtail="node", arrowhead="empty", style="dashed"),
- EdgeType.ASSOCIATION: dict(
- fontcolor="green", arrowtail="none", arrowhead="diamond", style="solid"
- ),
- EdgeType.USES: dict(arrowtail="none", arrowhead="open"),
+ EdgeType.INHERITS: {"arrowtail": "none", "arrowhead": "empty"},
+ EdgeType.IMPLEMENTS: {"arrowtail": "node", "arrowhead": "empty", "style": "dashed"},
+ EdgeType.ASSOCIATION: {
+ "fontcolor": "green",
+ "arrowtail": "none",
+ "arrowhead": "diamond",
+ "style": "solid",
+ },
+ EdgeType.USES: {"arrowtail": "none", "arrowhead": "open"},
}