John Snow <js...@redhat.com> writes: > Signed-off-by: John Snow <js...@redhat.com> > --- > scripts/qapi/introspect.py | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/scripts/qapi/introspect.py b/scripts/qapi/introspect.py > index 2a39726f40a..2b338abe2cf 100644 > --- a/scripts/qapi/introspect.py > +++ b/scripts/qapi/introspect.py > @@ -97,6 +97,14 @@ def __init__(self, value: _NodeT, ifcond: Iterable[str], > def _tree_to_qlit(obj: TreeValue, > level: int = 0, > dict_value: bool = False) -> str: > + """ > + Convert the type tree into a QLIT C string, recursively. > + > + :param obj: The value to convert. > + :param level: The indentation level for this particular value. > + :param dict_value: True when the value being processed belongs to a > + dict key; which suppresses the output indent. > + """ > > def indent(level: int) -> str: > return level * 4 * ' '
Might want to mention @obj may not be Annotated when dict_value=True. Not a demand.