From 8a70499412f3ffe674dae43aaa440019ac1328b7 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 30 May 2023 15:54:21 +0100 Subject: [PATCH] Be stricter with mypy compatibility in Django and DRF stubs --- {{cookiecutter.project_slug}}/requirements/local.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 073160be3..66edd5d4c 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -14,11 +14,11 @@ watchfiles==0.19.0 # https://github.com/samuelcolvin/watchfiles # Testing # ------------------------------------------------------------------------------ mypy==1.2.0 # https://github.com/python/mypy -django-stubs==4.2.0 # https://github.com/typeddjango/django-stubs +django-stubs[compatible-mypy]==4.2.0 # https://github.com/typeddjango/django-stubs pytest==7.3.1 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.7 # https://github.com/Frozenball/pytest-sugar {%- if cookiecutter.use_drf == "y" %} -djangorestframework-stubs==3.14.0 # https://github.com/typeddjango/djangorestframework-stubs +djangorestframework-stubs[compatible-mypy]==3.14.0 # https://github.com/typeddjango/djangorestframework-stubs {%- endif %} # Documentation