[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/37] qapi/events.py: Move comments into docstrings
From: |
John Snow |
Subject: |
[PATCH 18/37] qapi/events.py: Move comments into docstrings |
Date: |
Tue, 15 Sep 2020 18:40:08 -0400 |
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/events.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/qapi/events.py b/scripts/qapi/events.py
index 449a700ffe..0b49cf5fea 100644
--- a/scripts/qapi/events.py
+++ b/scripts/qapi/events.py
@@ -49,8 +49,10 @@ def gen_event_send_decl(name: str,
proto=build_event_send_proto(name, arg_type, boxed))
-# Declare and initialize an object 'qapi' using parameters from build_params()
def gen_param_var(typ: QAPISchemaObjectType) -> str:
+ """
+ Declare and initialize a qapi object, using parameters from `build_params`.
+ """
assert not typ.variants
ret = mcgen('''
%(c_name)s param = {
--
2.26.2
- [PATCH 24/37] qapi/gen.py: Fix edge-case of _is_user_module, (continued)
- [PATCH 24/37] qapi/gen.py: Fix edge-case of _is_user_module, John Snow, 2020/09/15
- [PATCH 21/37] qapi/commands.py: enable checking with mypy, John Snow, 2020/09/15
- [PATCH 16/37] qapi: establish mypy type-checking baseline, John Snow, 2020/09/15
- Re: [PATCH 16/37] qapi: establish mypy type-checking baseline, John Snow, 2020/09/18
- Re: [PATCH 16/37] qapi: establish mypy type-checking baseline, Markus Armbruster, 2020/09/21
- Re: [PATCH 16/37] qapi: establish mypy type-checking baseline, John Snow, 2020/09/21
[PATCH 18/37] qapi/events.py: Move comments into docstrings,
John Snow <=
[PATCH 22/37] qapi/source.py: add notational type hints, John Snow, 2020/09/15
[PATCH 19/37] qapi/commands.py: Don't re-bind to variable of different type, John Snow, 2020/09/15
[PATCH 17/37] qapi/events.py: add notational type hints, John Snow, 2020/09/15
[PATCH 20/37] qapi/commands.py: add notational type hints, John Snow, 2020/09/15
[PATCH 23/37] qapi/source.py: delint with pylint, John Snow, 2020/09/15
[PATCH 28/37] qapi/gen.py: update write() to be more idiomatic, John Snow, 2020/09/15
[PATCH 29/37] qapi/gen.py: delint with pylint, John Snow, 2020/09/15
[PATCH 27/37] qapi/gen.py: Remove unused parameter, John Snow, 2020/09/15
[PATCH 26/37] qapi/gen.py: Enable checking with mypy, John Snow, 2020/09/15
[PATCH 30/37] qapi/introspect.py: Add a typed 'extra' structure, John Snow, 2020/09/15