From 6840ca071c87ec9d912f86c9f642d56c39163a9b Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 19 Mar 2024 15:59:35 +0200 Subject: [PATCH] Clean mypy cache on each run of `stubtest` Same as was merged into django-stubs: * https://github.com/typeddjango/django-stubs/pull/2015 --- scripts/stubtest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/stubtest.sh b/scripts/stubtest.sh index 3c6454ccd..ba53d0523 100755 --- a/scripts/stubtest.sh +++ b/scripts/stubtest.sh @@ -6,6 +6,9 @@ set -e export MYPYPATH='.' +# Cleaning existing cache: +rm -rf .mypy_cache + # TODO: remove `--ignore-positional-only` when ready stubtest rest_framework \ --mypy-config-file mypy.ini \