From ec11a31628b2b562945d67fb3446638ba3f02f66 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 48441a6e8..9845932dd 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)