From d3ee0b66bc631d93d559fbe3ecac10c695e93bec Mon Sep 17 00:00:00 2001 From: Bruno Meneguello <1322552+bkmeneguello@users.noreply.github.com> Date: Wed, 30 Dec 2020 15:47:41 -0300 Subject: [PATCH] Fix node attrs not being copied to Cluster --- diagrams/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diagrams/__init__.py b/diagrams/__init__.py index 0cfc3dc5..cd8b89bf 100644 --- a/diagrams/__init__.py +++ b/diagrams/__init__.py @@ -351,7 +351,8 @@ class Node(_Cluster): # Set attributes. for k, v in self._default_graph_attrs.items(): self.dot.graph_attr[k] = v - self.dot.graph_attr['tooltip'] = self._attrs['tooltip'] + for k, v in self._attrs.items(): + self.dot.graph_attr[k] = v icon = self._load_icon() if icon: