|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH 06/19] qapi/schema: adjust type narrowing for mypy's benefit |
| Date: | Thu, 16 Nov 2023 08:04:28 +0100 |
| User-agent: | Mozilla Thunderbird |
On 16/11/23 02:43, John Snow wrote:
We already take care to perform some type narrowing for arg_type and ret_type, but not in a way where mypy can utilize the result. A simple change to use a temporary variable helps the medicine go down. Signed-off-by: John Snow <jsnow@redhat.com> --- scripts/qapi/schema.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
| [Prev in Thread] | Current Thread | [Next in Thread] |