qapi/gen: inline _wrap_ifcond into end_if()
authorJohn Snow <jsnow@redhat.com>
Mon, 1 Feb 2021 19:37:35 +0000 (14:37 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2021 13:15:58 +0000 (14:15 +0100)
commita253b3eb9a194a0b2e8b55095ce5f28c2d5cfa11
tree33f13cc4620e052f818f4261254f4fa37f787860
parentad1218086efb469d292f5cdd3e8299e5d2e7d8d6
qapi/gen: inline _wrap_ifcond into end_if()

We assert _start_if is not None in end_if, but that's opaque to mypy.
By inlining _wrap_ifcond, that constraint becomes provable to mypy.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-5-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/gen.py