]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Fix a botched type annotation
authorMarkus Armbruster <armbru@redhat.com>
Wed, 8 Sep 2021 04:54:24 +0000 (06:54 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 8 Sep 2021 13:30:10 +0000 (15:30 +0200)
commit7b275cdd69d5e6af0b95f4e6440d4664fe1c3674
treef90a0203e477cf12f5eba3470f1e4a1db317cb0d
parentabf7aee72ea66944a62962603e4c2381f5e473e7
qapi: Fix a botched type annotation

Mypy is unhappy:

    $ mypy --config-file=scripts/qapi/mypy.ini `git-ls-files scripts/qapi/\*py`
    scripts/qapi/common.py:208: error: Function is missing a return type annotation
    scripts/qapi/common.py:227: error: Returning Any from function declared to return "str"

Messed up in commit ccea6a8637 "qapi: Factor common recursion out of
cgen_ifcond(), docgen_ifcond()".  Tidy up.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210908045428.2689093-2-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
scripts/qapi/common.py