From 7951ed2b867cf12be9471ff07900ed673d0a5eda Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 11 Nov 2021 21:51:38 +0200 Subject: [PATCH] Advertize type annotations with py.typed Existence of py.typed in the top-level package tells users of the packages that the packages are annotated. This should fix mypy errors like this in downstream projects: error: Skipping analyzing "tuf.api.metadata": found module but no type hints or library stubs Fixes #1633 Signed-off-by: Jussi Kukkonen --- setup.cfg | 3 +++ tuf/py.typed | 0 2 files changed, 3 insertions(+) create mode 100644 tuf/py.typed diff --git a/setup.cfg b/setup.cfg index f880a3893d..1d4a31c202 100644 --- a/setup.cfg +++ b/setup.cfg @@ -45,6 +45,9 @@ install_requires = [options.packages.find] exclude = tests +[options.package_data] +tuf = py.typed + [check-manifest] ignore = .fossa.yml diff --git a/tuf/py.typed b/tuf/py.typed new file mode 100644 index 0000000000..e69de29bb2