python: update for mypy 0.950
commite7874a50ff3f5b20fb46f36958ad88334e4d55cd
authorJohn Snow <jsnow@redhat.com>
Thu, 26 May 2022 00:09:13 +0000 (25 20:09 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:54 +0000 (6 09:26 +0200)
tree0de33531bf3a842e262238509ed3ce762f2d3431
parentd7caf13b5fcf742e5680c1d3448ba070fc811644
python: update for mypy 0.950

typeshed (included in mypy) recently updated to improve the typing for
WriteTransport objects. I was working around this, but now there's a
version where I shouldn't work around it.

Unfortunately this creates some minor ugliness if I want to support both
pre- and post-0.950 versions. For now, for my sanity, just disable the
unused-ignores warning.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220526000921.1581503-2-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
python/qemu/qmp/util.py
python/setup.cfg