diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 62fa79113..e5974e02f 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -35,11 +35,7 @@ jobs: - name: Update pip run: python -m pip install -U pip - name: Install dependencies - # Use pre-release stubtest. Keep the following in sync: - # - get_mypy_req in tests/stubtest_third_party.py - # - stubtest-stdlib in .github/workflows/daily.yml - # - stubtest-stdlib in .github/workflows/tests.yml - run: pip install $(grep tomli== requirements-tests.txt) git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f + run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt) - name: Run stubtest run: python tests/stubtest_stdlib.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d1912ec05..b7182784c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -110,11 +110,7 @@ jobs: - name: Update pip run: python -m pip install -U pip - name: Install dependencies - # Use pre-release stubtest. Keep the following in sync: - # - get_mypy_req in tests/stubtest_third_party.py - # - stubtest-stdlib in .github/workflows/daily.yml - # - stubtest-stdlib in .github/workflows/tests.yml - run: pip install $(grep tomli== requirements-tests.txt) git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f + run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt) - name: Run stubtest run: python tests/stubtest_stdlib.py diff --git a/requirements-tests.txt b/requirements-tests.txt index f615a84d4..4644555e9 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,4 +1,4 @@ -mypy==0.940 +mypy==0.941 pytype==2022.2.23; platform_system != "Windows" and python_version < "3.10" # must match .pre-commit-config.yaml black==22.1.0 diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index 8779796d1..cf3848d9a 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -18,12 +18,6 @@ import tomli @functools.lru_cache() def get_mypy_req(): - # Use pre-release stubtest. Keep the following in sync: - # - get_mypy_req in tests/stubtest_third_party.py - # - stubtest-stdlib in .github/workflows/daily.yml - # - stubtest-stdlib in .github/workflows/tests.yml - return "git+git://github.com/python/mypy@c7a81620bef7585cca6905861bb7ef34ec12da2f" - with open("requirements-tests.txt") as f: return next(line.strip() for line in f if "mypy" in line)