Re: [PATCH RFC 12/32] python/qemu/lib: fix socket.makefile() typing

2020-05-31 Thread Philippe Mathieu-Daudé
On 5/14/20 7:53 AM, John Snow wrote: > Note: > > A bug in typeshed (https://github.com/python/typeshed/issues/3977) > misinterprets the type of makefile(). Work around this by explicitly > stating that we are opening a text-mode file. > > Signed-off-by: John Snow > --- > python/qemu/lib/qmp.py

[PATCH RFC 12/32] python/qemu/lib: fix socket.makefile() typing

2020-05-14 Thread John Snow
Note: A bug in typeshed (https://github.com/python/typeshed/issues/3977) misinterprets the type of makefile(). Work around this by explicitly stating that we are opening a text-mode file. Signed-off-by: John Snow --- python/qemu/lib/qmp.py | 10 +++--- python/qemu/lib/qtest.py | 12