From a171a3d92aee49beec6065a3143052a7d5bb4bc3 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 9 Oct 2020 12:54:28 +0300 Subject: [PATCH 1/2] add py.typed to setup --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7f3d6ae48..c5144a850 100755 --- a/setup.py +++ b/setup.py @@ -66,7 +66,8 @@ url="https://github.com/apple/coremltools", packages=find_packages(), package_data={ - "": ["LICENSE.txt", "README.md", "libcaffeconverter.so", "libcoremlpython.so"] + "": ["LICENSE.txt", "README.md", "libcaffeconverter.so", "libcoremlpython.so"], + "coremltools": ["py.typed"] }, install_requires=[ "numpy >= 1.14.5", From 4a286ba38577e27d40ec8a7534765bc90b029524 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 9 Oct 2020 12:57:03 +0300 Subject: [PATCH 2/2] Create py.typed --- coremltools/py.typed | 1 + 1 file changed, 1 insertion(+) create mode 100644 coremltools/py.typed diff --git a/coremltools/py.typed b/coremltools/py.typed new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/coremltools/py.typed @@ -0,0 +1 @@ +