pyln.proto.message: expose array types, add set_field for Message class.

Exposing the array types is required for our dummyrunner in the lnprototest suite, since
it wants to be able to generate fake fields.

The set_field is similarly useful.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-06-12 13:23:31 +09:30
committed by Christian Decker
parent f52065201b
commit fd3ea91b44
2 changed files with 16 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
from .array_types import SizedArrayType, DynamicArrayType, EllipsisArrayType
from .message import MessageNamespace, MessageType, Message, SubtypeType
from .fundamental_types import split_field, FieldType
@@ -10,6 +11,9 @@ __all__ = [
"SubtypeType",
"FieldType",
"split_field",
"SizedArrayType",
"DynamicArrayType",
"EllipsisArrayType",
# fundamental_types
'byte',