OSDN Git Service

python: update type hints for mypy 0.930
authorJohn Snow <jsnow@redhat.com>
Mon, 10 Jan 2022 19:13:49 +0000 (14:13 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 10 Jan 2022 23:22:59 +0000 (18:22 -0500)
commit366d33158cea72e80d80505f94c34cb505385c0a
tree3c0b0186eb627a7918cde86d15fdf9f061025141
parent42d73f2894ea1855df5a25d58e0d9eac6023dcc3
python: update type hints for mypy 0.930

Mypy 0.930, released Dec 22, changes the way argparse objects are
considered. Crafting a definition that works under Python 3.6 and an
older mypy alongside newer versions simultaneously is ... difficult,
so... eh. Stub it out with an 'Any' definition to get the CI moving
again.

Oh well.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
Message-id: 20220110191349.1841027-4-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/qmp/qom_common.py