From 8c8647fe81b8c6ac4f3a70fafd45b049e3344d19 Mon Sep 17 00:00:00 2001 From: Joerg Behrmann Date: Mon, 6 Jul 2020 12:10:51 +0200 Subject: [PATCH] ci: pin mypy version until python/mypy#8962 is resolved Starting with 0.780 (including current 0.782) the type arguments for shutil.copyfileobj cannot be infered. --- .github/workflows/ci-mypy.yml | 2 +- ci/semaphore.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-mypy.yml b/.github/workflows/ci-mypy.yml index d261f39c8..9dabc97b6 100644 --- a/.github/workflows/ci-mypy.yml +++ b/.github/workflows/ci-mypy.yml @@ -9,6 +9,6 @@ jobs: with: python-version: '3.x' - name: install mypy via pip - run: python3 -m pip install mypy + run: python3 -m pip install 'mypy==0.770' - name: run mypy on mkosi with settings from setup.cfg run: python3 -m mypy mkosi diff --git a/ci/semaphore.sh b/ci/semaphore.sh index 608c64799..e874614c0 100755 --- a/ci/semaphore.sh +++ b/ci/semaphore.sh @@ -36,5 +36,5 @@ sudo python3.6 -m pip install pytest sudo python3.6 -m pytest # Run mypy check -sudo python3.6 -m pip install mypy +sudo python3.6 -m pip install 'mypy==0.770' sudo python3.6 -m mypy mkosi -- 2.47.2