diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3cfc40e..ebe5141 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,7 +35,7 @@ jobs: workdir: lxml-stubs fail_on_error: true ignore_note: true - setup_command: pip install mypy>=1.1,<1.4 + setup_command: pip install mypy==1.5.1 setup_method: install install_types: false diff --git a/tox.ini b/tox.ini index 32f045e..efa67c8 100644 --- a/tox.ini +++ b/tox.ini @@ -18,7 +18,8 @@ deps = [testenv:py{38,39,310,311,312}-stub] deps = - {[testenv:mypy]deps} + {[common_dep]deps} + mypy == 1.3.0 pytest-mypy-plugins ~= 1.10, != 1.10.0 commands = pytest {posargs:test-stub} @@ -44,7 +45,7 @@ commands = [testenv:mypy] deps = {[common_dep]deps} - mypy >= 1.2, < 1.4 + mypy >= 1.2, < 1.6 package = skip commands = mypy {posargs:lxml-stubs}