diff options
Diffstat (limited to 'scripts/qapi')
| -rw-r--r-- | scripts/qapi/mypy.ini | 2 | ||||
| -rw-r--r-- | scripts/qapi/parser.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini index 6625356429..3463307ddc 100644 --- a/scripts/qapi/mypy.ini +++ b/scripts/qapi/mypy.ini @@ -1,7 +1,7 @@ [mypy] strict = True disallow_untyped_calls = False -python_version = 3.6 +python_version = 3.7 [mypy-qapi.schema] disallow_untyped_defs = False 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 @@ class QAPIDoc: 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: |