From 2e5a146081a7877322366da205b9e2e67d2b2b25 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 7 Feb 2023 23:28:46 +0100 Subject: [PATCH] Limit tenacity due to mypy problems The 8.2.0 version of tenacity, implemented a change that breaks mypy checks for clients using `@retry` decorated functions. The issue is tracked in https://github.com/jd/tenacity/issues/389 --- setup.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index fb1ae6c04baea..7ebb9782953d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -133,7 +133,9 @@ install_requires = sqlalchemy>=1.4,<2.0 sqlalchemy_jsonfield>=1.0 tabulate>=0.7.5 - tenacity>=6.2.0 + # The 8.2.0 release of tenacity has a mypy error that breaks our CI + # The upper-bound limit can be removed after https://github.com/jd/tenacity/issues/389 is resolved + tenacity>=6.2.0,<8.2.0 termcolor>=1.1.0 typing-extensions>=4.0.0 unicodecsv>=0.14.1