[gobject-introspection] CI: use a newer mypy in CI to fix the msys2 job
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] CI: use a newer mypy in CI to fix the msys2 job
- Date: Wed, 2 Feb 2022 18:47:26 +0000 (UTC)
commit 3b2d2e67461d16c48a4066b2c8a9f6b7b3c869bd
Author: Christoph Reiter <reiter christoph gmail com>
Date: Wed Feb 2 18:01:34 2022 +0100
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.
.gitlab-ci.yml | 2 +-
.gitlab-ci/test-msys2-meson.sh | 2 +-
giscanner/annotationparser.py | 12 ++++++++----
3 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 55d05682..7aa002ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,7 +58,7 @@ fedora-x86_64-meson:
- ninja -C _build gi-doc
- mkdir -p public
- mv _build/docs/reference/html/ public/girepository/
- - python3 -m pip install --user flake8 mypy==0.790
+ - python3 -m pip install --user flake8 mypy==0.931 types-Markdown
- python3 -m flake8 --count
- python3 -m mypy _build
except:
diff --git a/.gitlab-ci/test-msys2-meson.sh b/.gitlab-ci/test-msys2-meson.sh
index 5f1d507c..36ef95f2 100644
--- a/.gitlab-ci/test-msys2-meson.sh
+++ b/.gitlab-ci/test-msys2-meson.sh
@@ -30,7 +30,7 @@ pacman --noconfirm -S --needed \
export CCACHE_BASEDIR="${CI_PROJECT_DIR}"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
-pip3 install --upgrade --user meson==0.58.2 flake8 mypy==0.790
+pip3 install --upgrade --user meson==0.58.2 flake8 mypy==0.931 types-Markdown
export PATH="$HOME/.local/bin:$PATH"
export CFLAGS="-Werror"
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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]