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

Method __init__

contrib/msggen/msggen/patch.py:75–77  ·  view source on GitHub ↗

Create a patch that can annotate `added` and `deprecated`

(self, meta)

Source from the content-addressed store, hash-verified

73 """
74
75 def __init__(self, meta) -> None:
76 """Create a patch that can annotate `added` and `deprecated`"""
77 self.meta = meta
78
79 def visit(self, f: model.Field, parent: Optional[model.Field] = None, inherited_added: Optional[str] = None, inherited_deprecated: Optional[str] = None) -> None:
80 m = self.meta["model-field-versions"].get(f.path, {})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected