From b7dd9d82de2f66f3626696033b4ee77d5e38367b Mon Sep 17 00:00:00 2001 From: Jan Luca Naumann Date: Thu, 20 May 2021 17:04:52 +0200 Subject: [PATCH] Export typing information This commit adds the flag that the package contains typing information. Therefore other packages can use the typing data to check their code by mypy. Ref.: https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages Signed-off-by: Jan Luca Naumann --- setup.py | 1 + tensornetwork/py.typed | 0 2 files changed, 1 insertion(+) create mode 100644 tensornetwork/py.typed diff --git a/setup.py b/setup.py index caab19d70..f34dc584d 100644 --- a/setup.py +++ b/setup.py @@ -43,5 +43,6 @@ description=description, long_description=long_description, long_description_content_type="text/markdown", + package_data={"tensornetwork": ["py.typed"]}, packages=find_packages(), ) diff --git a/tensornetwork/py.typed b/tensornetwork/py.typed new file mode 100644 index 000000000..e69de29bb