qemu-cr16/scripts/qapi
Markus Armbruster 1ca08107c5 qapi/parser: Mollify mypy
re.match(r'^ *', ...) can't fail, but mypy doesn't know that and
complains:

    scripts/qapi/parser.py:444: error: Item "None" of "Match[str] | None" has no attribute "end"  [union-attr]

Work around by using must_match() instead.

Fixes: 8107ba47fd (qapi: Add documentation format validation)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251105152219.311154-1-armbru@redhat.com>
2025-11-10 11:57:18 +01:00
..
__init__.py
backend.py qapi: Add some pylint ignores 2025-06-05 12:08:53 -04:00
commands.py qapi/command: Avoid generating unused qmp_marshal_output_T() 2025-11-04 13:34:20 +01:00
common.py qapi: Smarter camel_to_upper() to reduce need for 'prefix' 2024-09-10 13:22:47 +02:00
error.py treewide: remove unnessary "coding" header 2025-10-01 11:22:07 -04:00
events.py qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
expr.py treewide: remove unnessary "coding" header 2025-10-01 11:22:07 -04:00
features.py qapi: expose all schema features to code 2025-02-10 15:45:04 +01:00
gen.py treewide: remove unnessary "coding" header 2025-10-01 11:22:07 -04:00
introspect.py qapi/introspect: Use @dataclass to simplify 2025-03-06 10:09:25 +01:00
main.py scripts/qapi/backend: Clean up create_backend()'s failure mode 2025-03-11 10:26:52 +01:00
parser.py qapi/parser: Mollify mypy 2025-11-10 11:57:18 +01:00
pylintrc python: add qapi static analysis tests 2025-06-05 12:09:43 -04:00
schema.py treewide: remove unnessary "coding" header 2025-10-01 11:22:07 -04:00
source.py qapi/source: allow multi-line QAPISourceInfo advancing 2025-03-11 10:10:57 +01:00
types.py qapi: expose all schema features to code 2025-02-10 15:45:04 +01:00
visit.py qapi: expose all schema features to code 2025-02-10 15:45:04 +01:00