Skip to content
Snippets Groups Projects
Commit d27e7c35 authored by Markus Armbruster's avatar Markus Armbruster Committed by Richard Henderson
Browse files

qapi/parser: Drop two bad type hints for now


Two type hints fail centos-stream-8-x86_64 CI.  They are actually
broken.  Changing them to Optional[re.Match[str]] fixes them locally
for me, but then CI fails differently.  Drop them for now.

Fixes: 3e32dca3 (qapi: Rewrite parsing of doc comment section symbols and tags)
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-Id: <20230517061600.1782455-1-armbru@redhat.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Tested-by: default avatarIgor Mammedov <imammedo@redhat.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 19200a0e
No related branches found
No related tags found
No related merge requests found
......@@ -563,11 +563,11 @@ def end_comment(self) -> None:
self._switch_section(QAPIDoc.NullSection(self._parser))
@staticmethod
def _match_at_name_colon(string: str) -> re.Match:
def _match_at_name_colon(string: str):
return re.match(r'@([^:]*): *', string)
@staticmethod
def _match_section_tag(string: str) -> re.Match:
def _match_section_tag(string: 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