diff --git a/pyproject.toml b/pyproject.toml index 7d765c9..9ff79bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ tests = [ # No point on Pypy thanks to https://github.com/python/typed_ast/issues/111 "pytest-mypy-plugins; platform_python_implementation != 'PyPy'", # Can't use 0.940: https://github.com/python/mypy/issues/12339 - "mypy!=0.940; platform_python_implementation != 'PyPy'", + "mypy<=1.10.1; platform_python_implementation != 'PyPy'", "types-mock", "pyyaml", ] @@ -67,6 +67,7 @@ dev = [ "PyHamcrest[docs,tests]", "towncrier", "twine", + "mypy<=1.10.1", "pytest-mypy", "flake8", "black", diff --git a/tox.ini b/tox.ini index c7a24cb..5384756 100644 --- a/tox.ini +++ b/tox.ini @@ -175,7 +175,7 @@ commands = towncrier --draft [testenv:typing] basepython = python3.12 deps = - mypy + mypy <= 1.10.1 types-mock commands = mypy src/