From 2f1367332b975b93bd9d7c4e61754608fcecd513 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 25 Oct 2020 03:19:15 -0700 Subject: [PATCH] stubtest unused: match stubtest version, add fix (#4705) In #4696 I bumped stubtest to a commit that hasn't been released. We should have these stubtest versions match. In https://github.com/python/mypy/pull/9426 I changed the output of stubtest here; it's good to get this change in before I forget and this action silently stops working. Co-authored-by: hauntsaninja <> --- .github/workflows/stubtest-unused-whitelist.yml | 2 +- tests/stubtest_unused.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stubtest-unused-whitelist.yml b/.github/workflows/stubtest-unused-whitelist.yml index 26bc6f383..f2ca2473d 100644 --- a/.github/workflows/stubtest-unused-whitelist.yml +++ b/.github/workflows/stubtest-unused-whitelist.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - pip install -U mypy==0.790 + pip install -U git+git://github.com/python/mypy@af3c8be98f - name: Run stubtest shell: bash run: ./tests/stubtest_unused.py | tee stubtest-output-${{ matrix.os }}-${{ matrix.python-version }} || true diff --git a/tests/stubtest_unused.py b/tests/stubtest_unused.py index f960a9d45..a66f9d779 100755 --- a/tests/stubtest_unused.py +++ b/tests/stubtest_unused.py @@ -7,7 +7,7 @@ import os.path import subprocess import sys -_UNUSED_NOTE = "note: unused whitelist entry " +_UNUSED_NOTE = "note: unused allowlist entry " _WHITELIST_PATH = os.path.join("tests", "stubtest_whitelists")