qapi/schema: make c_type() and json_type() abstract methods
commitd150be3d54e4df04948b7205f7ccdde5a84f0684
authorJohn Snow <jsnow@redhat.com>
Fri, 15 Mar 2024 15:22:44 +0000 (15 16:22 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 24 Apr 2024 08:03:54 +0000 (24 10:03 +0200)
tree0fc9a63b797d8f1b0e9239a4e01884eecf1f1a49
parent578cd9329b2c5beac55a8a8c672f96bd40cc183f
qapi/schema: make c_type() and json_type() abstract methods

These methods should always return a str, it's only the default abstract
implementation that doesn't. They can be marked "abstract", which
requires subclasses to override the method with the proper return type.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240315152301.3621858-9-armbru@redhat.com>
scripts/qapi/schema.py