Use stubtest 0.941 (#7490)

This commit is contained in:
Sebastian Rittau
2022-03-15 08:37:34 +01:00
committed by GitHub
parent 134f047402
commit fdc5863337
4 changed files with 3 additions and 17 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)