From a62fde90aa946b0ea5516b1ae4591fc9f67ea22e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 4 Jan 2022 14:34:44 +0100 Subject: fix mypy invocation for newer mypy version Mypy >= 0.780 complained about finding a source file multiple times once via the passed path and once in the module scripts. --- scripts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Makefile') diff --git a/scripts/Makefile b/scripts/Makefile index 9875e834..2d9a39ab 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -14,4 +14,4 @@ check-pylint: pylint --generated-members=cv2.* --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? check-mypy: - mypy $(PYTHONFILES) + MYPYPATH=scripts mypy --namespace-packages --explicit-package-bases $(PYTHONFILES) -- cgit v1.2.3