From 3c1c23fd39916b1b47a22a7a88444bee466e333b Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 7 Jun 2026 18:46:46 +0100 Subject: [PATCH 1/2] feat: ship py.typed marker so type hints are exposed to type checkers Adds the PEP 561 py.typed marker (and the Typing :: Typed classifier) so downstream type checkers use the package's inline annotations. Closes #77. --- apiclient/py.typed | 0 setup.py | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 apiclient/py.typed diff --git a/apiclient/py.typed b/apiclient/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 66b836b..8b21b6e 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ url="https://github.com/MikeWooster/api-client", python_requires=">=3.10", packages=["apiclient"], + package_data={"apiclient": ["py.typed"]}, classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3.10", @@ -41,6 +42,7 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Intended Audience :: Developers", + "Typing :: Typed", ], install_requires=application_dependencies, extras_require={ From 3c3c54862b9a02d8be64703b0ce7dcfbd662c1d0 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 7 Jun 2026 18:52:45 +0100 Subject: [PATCH 2/2] build: include .typed markers in sdist explicitly --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index 13df79b..d517f2a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ recursive-include apiclient * include VERSION +global-include *.typed recursive-exclude * __pycache__ recursive-exclude * *.py[co]