Re: [PATCH v4 26/35] python/qemu/machine: QEMUMachine: improve qmp() method

2021-06-02 Thread John Snow
On 6/2/21 9:10 AM, Vladimir Sementsov-Ogievskiy wrote: 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_key

[PATCH v4 26/35] python/qemu/machine: QEMUMachine: improve qmp() method

2021-06-02 Thread Vladimir Sementsov-Ogievskiy
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 inter