We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f0e36 commit a5d7637Copy full SHA for a5d7637
python/qemu/qmp.py
@@ -12,13 +12,31 @@
12
import socket
13
import logging
14
from typing import (
15
+ Any,
16
+ Dict,
17
Optional,
18
TextIO,
19
Type,
20
+ Tuple,
21
+ Union,
22
)
23
from types import TracebackType
24
25
26
+# QMPMessage is a QMP Message of any kind.
27
+# e.g. {'yee': 'haw'}
28
+#
29
+# QMPReturnValue is the inner value of return values only.
30
+# {'return': {}} is the QMPMessage,
31
+# {} is the QMPReturnValue.
32
+QMPMessage = Dict[str, Any]
33
+QMPReturnValue = Dict[str, Any]
34
+
35
+InternetAddrT = Tuple[str, str]
36
+UnixAddrT = str
37
+SocketAddrT = Union[InternetAddrT, UnixAddrT]
38
39
40
class QMPError(Exception):
41
"""
42
QMP base exception
0 commit comments