qemu-patch-raspberry4/python/qemu
John Snow c4e6023f05 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>
2020-10-20 09:37:57 -04:00
..
.flake8 python/qemu: delint; add flake8 config 2020-05-31 18:25:30 +02:00
.isort.cfg python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
__init__.py python/qemu: Remove unneeded imports in __init__ 2019-12-16 18:39:51 -05:00
accel.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
console_socket.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
machine.py python/machine.py: Fix monitor address typing 2020-10-20 09:37:57 -04:00
pylintrc python/qemu: Cleanup changes to ConsoleSocket 2020-07-27 09:41:52 +01:00
qmp.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
qtest.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00