diff --git a/setup.py b/setup.py
index e0a9fbd0001c39f52b31d5c827504f45e72050dc..35e9952edb86f1990965ebd9329ca8f3826ab99c 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ REQUIREMENTS: dict = {
     ],
     'test': [
         'pytest',
-        'mypy>=0.931',
+        'mypy>=0.931,<0.971',
     ],
 }