Re: [PATCH RFC 13/32] python/qemu/lib: Adjust traceback typing

2020-05-31 Thread Philippe Mathieu-Daudé
On 5/14/20 7:53 AM, John Snow wrote: > mypy considers it incorrect to use `bool` to statically return false, > because it will assume that it could conceivably return True, and gives > different analysis in that case. Use a None return to achieve the same > effect, but make mypy happy. > > Note: P

Re: [PATCH RFC 13/32] python/qemu/lib: Adjust traceback typing

2020-05-26 Thread Philippe Mathieu-Daudé
On 5/14/20 7:53 AM, John Snow wrote: > mypy considers it incorrect to use `bool` to statically return false, > because it will assume that it could conceivably return True, and gives > different analysis in that case. Use a None return to achieve the same > effect, but make mypy happy. > > Note: P

[PATCH RFC 13/32] python/qemu/lib: Adjust traceback typing

2020-05-13 Thread John Snow
mypy considers it incorrect to use `bool` to statically return false, because it will assume that it could conceivably return True, and gives different analysis in that case. Use a None return to achieve the same effect, but make mypy happy. Note: Pylint considers function signatures as code that