Commit e6b94b16 authored by Florent Kermarrec's avatar Florent Kermarrec

interconnect/stream: allow empty description/payload on Endpoint.

parent 2f6b27da
......@@ -33,7 +33,7 @@ def set_reset_less(field):
s.reset_less = True
class EndpointDescription:
def __init__(self, payload_layout, param_layout=[]):
def __init__(self, payload_layout=[], param_layout=[]):
self.payload_layout = payload_layout
self.param_layout = param_layout
......@@ -59,7 +59,7 @@ class EndpointDescription:
class Endpoint(Record):
def __init__(self, description_or_layout, name=None, **kwargs):
def __init__(self, description_or_layout=[], name=None, **kwargs):
if isinstance(description_or_layout, EndpointDescription):
self.description = description_or_layout
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment