From 5f49c0173cd800b6ce0041615d65cb6d7d170fdb Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sun, 6 Oct 2024 19:05:43 -0700 Subject: [PATCH] Export type hints from openslide package Now that we've fully populated type hints, add py.typed marker (and also "Typing :: Typed" Trove classifier) so type checkers will use them. Signed-off-by: Benjamin Gilbert --- openslide/py.typed | 0 pyproject.toml | 1 + setup.py | 3 +++ 3 files changed, 4 insertions(+) create mode 100644 openslide/py.typed diff --git a/openslide/py.typed b/openslide/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/pyproject.toml b/pyproject.toml index 8fd7be02..42ee741b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Bio-Informatics", + "Typing :: Typed", ] requires-python = ">= 3.8" dependencies = ["Pillow"] diff --git a/setup.py b/setup.py index a4702e72..4a5e532c 100644 --- a/setup.py +++ b/setup.py @@ -21,4 +21,7 @@ # tag wheel for Limited API 'bdist_wheel': {'py_limited_api': 'cp311'} if _abi3 else {}, }, + package_data={ + 'openslide': ['py.typed'], + }, )