From 9dff1a58de1d22f30d1ee6ae4ae91f1f7eab963c Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Wed, 20 Dec 2023 21:45:32 +0100 Subject: [PATCH] chore: add stable django stubs version --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 954d8e94..6d5a221b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: mypy additional_dependencies: - - "django-stubs" + - "django-stubs<=4.2.6" #see https://github.com/typeddjango/django-stubs/issues/1872 - "djangorestframework" - "djangorestframework-stubs" - "django-filter-stubs" diff --git a/pyproject.toml b/pyproject.toml index 66ad22c8..d315e53a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ graphviz = "^0.20.1" mypy = "^1.7.1" django-filter-stubs = "^0.1.3" djangorestframework-stubs = "^3.14.4" -django-stubs = "^4.2.6" +django-stubs = "<=4.2.6" pytest = "^7.4.3" pytest-django = "^4.7.0" pytest-asyncio = "^0.23.2"