|
From: | Max Reitz |
Subject: | Re: [PATCH v2 25/33] iotests.py: VM: add own __enter__ method |
Date: | Tue, 1 Jun 2021 12:58:33 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
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 <vsementsov@virtuozzo.com> --- tests/qemu-iotests/iotests.py | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by: Max Reitz <mreitz@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |