qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 05/19] qapi/schema: make c_type() and json_type() abstract me


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 05/19] qapi/schema: make c_type() and json_type() abstract methods
Date: Thu, 16 Nov 2023 08:03:27 +0100
User-agent: Mozilla Thunderbird

On 16/11/23 02:43, John Snow wrote:
These methods should always return a str, it's only the default abstract
implementation that doesn't. They can be marked "abstract" by raising
NotImplementedError(), which requires subclasses to override the method
with the proper return type.

Signed-off-by: John Snow <jsnow@redhat.com>
---
  scripts/qapi/schema.py | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]