summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2022-02-02 18:01:34 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2022-02-02 18:24:08 +0100
commit3b2d2e67461d16c48a4066b2c8a9f6b7b3c869bd (patch)
tree78c4e1a2850980aecf03d729456d481c5546bb02 /giscanner
parent978c562383c057d324ffed9926bfcd9cd86172db (diff)
downloadgobject-introspection-3b2d2e67461d16c48a4066b2c8a9f6b7b3c869bd.tar.gz
CI: use a newer mypy in CI to fix the msys2 job
MSYS2 recently updated Python to 3.9.10 which triggered a build issued present in typed_ast, which was fixed in typed_ast 1.5.0: https://github.com/python/typed_ast/issues/169 The currently used mypy version has an upper limit on typed_ast, so this fixed version wasn't pulled in. To fix this, update mypy, fix one new warning it complains about (namedtuple not being named after the variable), and install the markdown stubs explicitely, since mypy no longer bundles them.
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/annotationparser.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 9bba315b..9fbcfe7d 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -1243,12 +1243,16 @@ class GtkDocCommentBlock(GtkDocAnnotatable):
#: Result object returned by :class:`GtkDocCommentBlockParser`._parse_annotations()
-_ParseAnnotationsResult = namedtuple('Result', ['success', 'annotations', 'annotations_changed',
- 'start_pos', 'end_pos'])
+_ParseAnnotationsResult = namedtuple(
+ '_ParseAnnotationsResult',
+ ['success', 'annotations', 'annotations_changed',
+ 'start_pos', 'end_pos'])
#: Result object returned by :class:`GtkDocCommentBlockParser`._parse_fields()
-_ParseFieldsResult = namedtuple('Result', ['success', 'annotations', 'annotations_changed',
- 'description'])
+_ParseFieldsResult = namedtuple(
+ '_ParseFieldsResult',
+ ['success', 'annotations', 'annotations_changed',
+ 'description'])
class GtkDocCommentBlockParser(object):