Skip to content

Commit fb0e42a

Browse files
committed
examples: Explicit port definition
1 parent 889ec60 commit fb0e42a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/repeat.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ def __init__(self, role):
1111
d = {
1212
'component': 'PythonRepeat',
1313
'label': 'Repeat input data without change',
14+
'inports': [
15+
{ 'id': 'in', 'type': 'any' },
16+
],
17+
'outports': [
18+
{ 'id': 'out', 'type': 'any' },
19+
],
1420
}
1521
msgflo.Participant.__init__(self, d, role)
1622

0 commit comments

Comments
 (0)