python/qmp: return generic type from context manager
authorJohn Snow <jsnow@redhat.com>
Mon, 7 Jun 2021 20:06:37 +0000 (16:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:07 +0000 (16:10 -0400)
commiteac8aabc92f80d9a41d9f01163921472e309334c
tree2a79619264b6c7308e0b9cfe4d0250cc1cadd2af
parent6e24a7edb8b64854636acd1f74abd8e5f1735b50
python/qmp: return generic type from context manager

__enter__ can be invoked from a subclass, so it needs a more flexible
type.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-31-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/qmp/__init__.py