[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] qapi/parser: Drop two bad type hints for now
From: |
Markus Armbruster |
Subject: |
[PATCH] qapi/parser: Drop two bad type hints for now |
Date: |
Wed, 17 May 2023 17:25:12 +0200 |
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: 3e32dca3f0d1 (qapi: Rewrite parsing of doc comment section symbols and
tags)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
scripts/qapi/parser.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py
index 4923a59d60..1ff334e6a8 100644
--- a/scripts/qapi/parser.py
+++ b/scripts/qapi/parser.py
@@ -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:
--
2.39.2
- [PULL 0/5] QAPI patches patches for 2023-05-17, Markus Armbruster, 2023/05/17
- [PULL 1/5] qapi: Improve error message for description following section, Markus Armbruster, 2023/05/17
- [PULL 3/5] docs/interop/qmp-spec: Update error description for parsing errors, Markus Armbruster, 2023/05/17
- [PULL 5/5] qapi/parser: Drop two bad type hints for now, Markus Armbruster, 2023/05/17
- [PULL 2/5] docs/interop: Convert qmp-spec.txt to rST, Markus Armbruster, 2023/05/17
- [PULL 4/5] docs/interop: Delete qmp-intro.txt, Markus Armbruster, 2023/05/17
- [PATCH] qapi/parser: Drop two bad type hints for now,
Markus Armbruster <=
- Re: [PULL 0/5] QAPI patches patches for 2023-05-17, Richard Henderson, 2023/05/17