From: John Snow Date: Mon, 7 Jun 2021 20:06:33 +0000 (-0400) Subject: python/qmp: add QMPObject type alias X-Git-Tag: v6.1.0-rc0~66^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1acde76328de10beff07c7f1c8146af72813ecd7;p=thirdparty%2Fqemu.git python/qmp: add QMPObject type alias This is meant to represent any generic object seen in a QMPMessage, not just the root object itself. Signed-off-by: John Snow Message-id: 20210607200649.1840382-27-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/python/qemu/qmp/__init__.py b/python/qemu/qmp/__init__.py index a6e1a7b8577..ba0d2281d67 100644 --- a/python/qemu/qmp/__init__.py +++ b/python/qemu/qmp/__init__.py @@ -41,6 +41,9 @@ QMPMessage = Dict[str, Any] #: QMPReturnValue is the 'return' value of a command. QMPReturnValue = object +#: QMPObject is any object in a QMP message. +QMPObject = Dict[str, object] + # QMPMessage can be outgoing commands or incoming events/returns. # QMPReturnValue is usually a dict/json object, but due to QAPI's # 'returns-whitelist', it can actually be anything.