On 05.11.25 18:22, Markus Armbruster wrote:
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: 8107ba47fd78 (qapi: Add documentation format validation) Signed-off-by: Markus Armbruster<[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> -- Best regards, Vladimir
