From b42912e639479e256fdd45d55c9812dc376ef40a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Jan 2020 07:25:23 +1000 Subject: [PATCH] mark anki and aqt modules as having typing info This means once they're installed via develop or a wheel, add-ons will be able to more easily typecheck their code against the Anki code. --- pylib/anki/py.typed | 0 qt/Makefile | 2 +- qt/aqt/py.typed | 0 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 pylib/anki/py.typed create mode 100644 qt/aqt/py.typed diff --git a/pylib/anki/py.typed b/pylib/anki/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/qt/Makefile b/qt/Makefile index 752405f56..31183d6c1 100644 --- a/qt/Makefile +++ b/qt/Makefile @@ -70,7 +70,7 @@ PYLIB := ../pylib CHECKDEPS := $(shell find aqt tests -name '*.py' | grep -v buildinfo.py) .build/mypy: $(CHECKDEPS) .build/qt-stubs - MYPYPATH=$(PYLIB) mypy aqt + mypy aqt @touch $@ .build/test: $(CHECKDEPS) diff --git a/qt/aqt/py.typed b/qt/aqt/py.typed new file mode 100644 index 000000000..e69de29bb