From 9151484cca9fd7e9152d64537c05b9408b3f11e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B6hr=2C=20Thomas?= Date: Mon, 4 Sep 2023 15:25:34 +0200 Subject: [PATCH] Updated readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5eb0f2e..b9ee14a 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,15 @@ from maize.core.workflow import Workflow # Define the nodes class Example(Node): - data = Parameter[str](default="Hello") - out = Output[str]() + data: Parameter[str] = Parameter(default="Hello") + out: Output[str] = Output() def run(self) -> None: self.out.send(self.data.value) class ConcatAndPrint(Node): - inp = MultiInput[str]() + inp: MultiInput[str] = MultiInput() def run(self) -> None: result = " ".join(inp.receive() for inp in self.inp)