diff --git a/diagrams/__init__.py b/diagrams/__init__.py index 3b180a9b..ce272363 100644 --- a/diagrams/__init__.py +++ b/diagrams/__init__.py @@ -271,7 +271,6 @@ class Node: # Generates a hash for identifying a node. self._hash = self._rand_hash() self.label = label - self.attrs.update({"URL": URL, "tooltip": tooltip}) # fmt: off # If a node has an icon, increase the height slightly to avoid @@ -285,6 +284,8 @@ class Node: } if self._icon else {} # fmt: on + self.attrs.update({"URL": URL, "tooltip": tooltip}) + # Node must be belong to a diagrams. self._diagram = getdiagram() if self._diagram is None: