Skip to content
Snippets Groups Projects
Commit a6c5d159 authored by John Snow's avatar John Snow Committed by Markus Armbruster
Browse files

qapi: re-establish linting baseline


Some very minor housekeeping to make the linters happy once more.

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Message-ID: <20231004230532.3002201-4-jsnow@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent deaca3fd
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,8 @@
from contextlib import contextmanager
import os
import sys
import re
import sys
from typing import (
Dict,
Iterator,
......
......@@ -22,6 +22,7 @@
Dict,
List,
Mapping,
Match,
Optional,
Set,
Union,
......@@ -563,11 +564,11 @@ def end_comment(self) -> None:
self._switch_section(QAPIDoc.NullSection(self._parser))
@staticmethod
def _match_at_name_colon(string: str):
def _match_at_name_colon(string: str) -> Optional[Match[str]]:
return re.match(r'@([^:]*): *', string)
@staticmethod
def _match_section_tag(string: str):
def _match_section_tag(string: str) -> Optional[Match[str]]:
return re.match(r'(Returns|Since|Notes?|Examples?|TODO): *', string)
def _append_body_line(self, line: str) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment