aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/297
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-08-24 11:38:46 +0300
committerHanna Reitz <hreitz@redhat.com>2021-09-01 14:03:47 +0200
commit3f3c9b4c9dcb462b2330e50cf81b9703288884ec (patch)
tree0218c8b27faf70865a2612d0681fea4614ca4490 /tests/qemu-iotests/297
parentc7daa57eb57e24a9427f636906f4faf2cfcbe943 (diff)
downloadqemu-3f3c9b4c9dcb462b2330e50cf81b9703288884ec.zip
qemu-3f3c9b4c9dcb462b2330e50cf81b9703288884ec.tar.gz
qemu-3f3c9b4c9dcb462b2330e50cf81b9703288884ec.tar.bz2
python/qemu/machine: QEMUMachine: improve qmp() method
We often call qmp() with unpacking dict, like qmp('foo', **{...}). mypy don't really like it, it thinks that passed unpacked dict is a positional argument and complains that it type should be bool (because second argument of qmp() is conv_keys: bool). Allow passing dict directly, simplifying interface, and giving a way to satisfy mypy. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-Id: <20210824083856.17408-25-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/297')
0 files changed, 0 insertions, 0 deletions