From e6af7be3ee12ff38f83f58e7615b737cac382527 Mon Sep 17 00:00:00 2001 From: mingrammer Date: Mon, 9 Mar 2020 22:50:38 +0900 Subject: [PATCH] fix(edge): only use the label --- diagrams/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/diagrams/__init__.py b/diagrams/__init__.py index f9b63beb..576dc9d4 100644 --- a/diagrams/__init__.py +++ b/diagrams/__init__.py @@ -408,7 +408,6 @@ class Edge: node: "Node" = None, forward: bool = False, reverse: bool = False, - xlabel: str = "", label: str = "", color: str = "", style: str = "", @@ -442,7 +441,7 @@ class Edge: self._attrs[k] = v # Graphviz complaining about using label for edges, so replace it with xlabel. - self._attrs["xlabel"] = label if label else xlabel + self._attrs["xlabel"] = label self._attrs["color"] = color self._attrs["style"] = style if fontcolor: