Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tlhr committed Sep 4, 2023
1 parent 5bb0b5d commit 9151484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9151484

Please sign in to comment.