On 20.05.21 16:21, Vladimir Sementsov-Ogievskiy wrote:
In superclass __enter__ method is defined with return value type hint
'QEMUMachine'. So, mypy thinks that return value of VM.__enter__ is
QEMUMachine. Let's redefine __enter__ in VM class, to give it correct
type hint.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
---
  tests/qemu-iotests/iotests.py | 4 ++++
  1 file changed, 4 insertions(+)

Reviewed-by: Max Reitz <mre...@redhat.com>


Reply via email to