[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 13/14] qapi/introspect.py: Add docstring to _tree_to_qlit
From: |
John Snow |
Subject: |
[PATCH v4 13/14] qapi/introspect.py: Add docstring to _tree_to_qlit |
Date: |
Tue, 2 Feb 2021 12:46:50 -0500 |
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/introspect.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/qapi/introspect.py b/scripts/qapi/introspect.py
index eb5d34cdb42..3e59caf7d4d 100644
--- a/scripts/qapi/introspect.py
+++ b/scripts/qapi/introspect.py
@@ -97,6 +97,13 @@ def __init__(self, value: _NodeT, ifcond: Iterable[str],
def _tree_to_qlit(obj: TreeValue,
level: int = 0,
suppress_first_indent: 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 suppress_first_indent: True for dict value children.
+ """
def indent(level: int) -> str:
return level * 4 * ' '
--
2.29.2
- [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, (continued)
- [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, John Snow, 2021/02/02
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, Markus Armbruster, 2021/02/03
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, John Snow, 2021/02/03
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, Markus Armbruster, 2021/02/05
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, John Snow, 2021/02/08
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, John Snow, 2021/02/08
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, Markus Armbruster, 2021/02/09
- Re: [PATCH v4 11/14] qapi/introspect.py: add type hint annotations, John Snow, 2021/02/10
[PATCH v4 12/14] qapi/introspect.py: add introspect.json dummy types, John Snow, 2021/02/02
[PATCH v4 14/14] qapi/introspect.py: Update copyright and authors list, John Snow, 2021/02/02
[PATCH v4 13/14] qapi/introspect.py: Add docstring to _tree_to_qlit,
John Snow <=