From c14cec1290dd726721d38d3cc0b1523c6ed9bd45 Mon Sep 17 00:00:00 2001 From: byarbrough <6315292+byarbrough@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:55:06 -0600 Subject: [PATCH] Add py.typed for PEP 561 compliance See #5325 --- setup.py | 1 + src/diffusers/py.typed | 0 2 files changed, 1 insertion(+) create mode 100644 src/diffusers/py.typed diff --git a/setup.py b/setup.py index a2201ac5b3b1..16a77c1fe313 100644 --- a/setup.py +++ b/setup.py @@ -255,6 +255,7 @@ def run(self): url="https://github.com/huggingface/diffusers", package_dir={"": "src"}, packages=find_packages("src"), + package_data={"diffusers": ["py.typed"]}, include_package_data=True, python_requires=">=3.8.0", install_requires=list(install_requires), diff --git a/src/diffusers/py.typed b/src/diffusers/py.typed new file mode 100644 index 000000000000..e69de29bb2d1