scripts/qmp-shell: refactor QMPCompleter
commitdb12abc20859e93e802f668a2f744222c96ada63
authorJohn Snow <jsnow@redhat.com>
Mon, 7 Jun 2021 20:06:31 +0000 (7 16:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:07 +0000 (18 16:10 -0400)
tree54179356eec7910f134e6833886aca45d54079c7
parent6faf2384ec78d5a1e0b5dfe430e80cf2278e45c4
scripts/qmp-shell: refactor QMPCompleter

list is a generic type, but we expect to use strings directly. We could
subclass list[str], but pylint does not presently understand that
invocation.

Change this class to envelop a list instead of *being* a list, for
simpler mypy typing.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-25-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/qmp/qmp-shell