summaryrefslogtreecommitdiffstats
path: root/python/qemu/qmp.py
diff options
context:
space:
mode:
authorJohn Snow2020-10-07 01:57:59 +0200
committerJohn Snow2020-10-20 15:37:57 +0200
commitc4e6023f05fe6dd14d9193814679490feac546a4 (patch)
treef4c005962142ee8d8406ac51ace7a53cd8cc9d87 /python/qemu/qmp.py
parentpython/qemu: use isort to lay out imports (diff)
downloadqemu-c4e6023f05fe6dd14d9193814679490feac546a4.tar.gz
qemu-c4e6023f05fe6dd14d9193814679490feac546a4.tar.xz
qemu-c4e6023f05fe6dd14d9193814679490feac546a4.zip
python/machine.py: Fix monitor address typing
Prior to this, it's difficult for mypy to intuit what the concrete type of the monitor address is; it has difficulty inferring the type across two variables. Create _monitor_address as a property that always returns a valid address to simplify static type analysis. To preserve our ability to clean up, use a simple boolean to indicate whether or not we should try to clean up the sock file after execution. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20201006235817.3280413-3-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/qmp.py')
0 files changed, 0 insertions, 0 deletions