From 0ca9385a628b24f576d7ff220feb17ca7d1c80ed Mon Sep 17 00:00:00 2001 From: Attila Nagy Date: Fri, 4 Nov 2022 10:45:25 +0100 Subject: [PATCH] feat: allow Node arguments to be passed to Custom Node (#437) --- diagrams/custom/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diagrams/custom/__init__.py b/diagrams/custom/__init__.py index 48441a6..9845932 100644 --- a/diagrams/custom/__init__.py +++ b/diagrams/custom/__init__.py @@ -15,6 +15,6 @@ class Custom(Node): def _load_icon(self): return self._icon - def __init__(self, label, icon_path): + def __init__(self, label, icon_path, *args, **kwargs): self._icon = icon_path - super().__init__(label) + super().__init__(label, *args, **kwargs)