Re: [PATCH v7 25/33] iotests.py: VM: add own __enter__ method

2021-08-23 Thread Vladimir Sementsov-Ogievskiy
04.08.2021 19:27, John Snow wrote: On Wed, Aug 4, 2021 at 5:39 AM Vladimir Sementsov-Ogievskiy mailto:vsement...@virtuozzo.com>> wrote: In superclass __enter__ method is defined with return value type hint 'QEMUMachine'. So, mypy thinks that return value of VM.__enter__ is QEMUMachi

Re: [PATCH v7 25/33] iotests.py: VM: add own __enter__ method

2021-08-04 Thread John Snow
On Wed, Aug 4, 2021 at 5:39 AM Vladimir Sementsov-Ogievskiy < vsement...@virtuozzo.com> 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