qemu-e2k/python/qemu
John Snow 1dda0404d8 python/qemu: Adjust traceback typing
mypy considers it incorrect to use `bool` to statically return false,
because it will assume that it could conceivably return True, and gives
different analysis in that case. Use a None return to achieve the same
effect, but make mypy happy.

Note: Pylint considers function signatures as code that might trip the
duplicate-code checker. I'd rather not disable this as it does not
trigger often in practice, so I'm disabling it as a one-off and filed a
change request; see https://github.com/PyCQA/pylint/issues/3619

Signed-off-by: John Snow <jsnow@redhat.com>
Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200514055403.18902-14-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2020-05-31 18:25:31 +02:00
..
__init__.py
.flake8 python/qemu: delint; add flake8 config 2020-05-31 18:25:30 +02:00
accel.py python/qemu: delint; add flake8 config 2020-05-31 18:25:30 +02:00
machine.py python/qemu: Adjust traceback typing 2020-05-31 18:25:31 +02:00
pylintrc python/qemu: delint and add pylintrc 2020-05-31 18:25:30 +02:00
qmp.py python/qemu: Adjust traceback typing 2020-05-31 18:25:31 +02:00
qtest.py python/qemu: fix socket.makefile() typing 2020-05-31 18:25:31 +02:00