MCPcopy Create free account
hub / github.com/ElementsProject/lightning / __init__

Method __init__

tools/generate-wire.py:44–54  ·  view source on GitHub ↗
(self, name, type_obj,
                 field_comments=[], optional=False)

Source from the content-addressed store, hash-verified

42# Class definitions, to keep things classy
43class Field(object):
44 def __init__(self, name, type_obj,
45 field_comments=[], optional=False):
46 self.name = name
47 self.type_obj = type_obj
48 self.count = 1
49 self.len_field_of = None
50 self.len_field = None
51 self.implicit_len = False
52
53 self.is_optional = optional
54 self.field_comments = field_comments
55
56 def __deepcopy__(self, memo):
57 deepcopy_method = self.__deepcopy__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected