From 42c0e2e9e4af861174f70b73ef4bfa138e6a3834 Mon Sep 17 00:00:00 2001 From: Mahyar Mirrashed Date: Sun, 31 May 2026 00:00:53 -0500 Subject: [PATCH] Add PEP 561 py.typed marker for type checker support --- MANIFEST.in | 1 + setup.py | 3 ++- src/onepassword/py.typed | 0 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/onepassword/py.typed diff --git a/MANIFEST.in b/MANIFEST.in index 2e92268b..f0635730 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include version.py +include src/onepassword/py.typed diff --git a/setup.py b/setup.py index 9e4a7b7a..2703aa90 100644 --- a/setup.py +++ b/setup.py @@ -71,9 +71,10 @@ def get_shared_library_data_to_include(): "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", + "Typing :: Typed", ], cmdclass={"bdist_wheel": bdist_wheel}, - package_data={"": get_shared_library_data_to_include()}, + package_data={"": get_shared_library_data_to_include(), "onepassword": ["py.typed"]}, install_requires=[ "pydantic>=2.5", # Minimum Pydantic version to run the Python SDK ], diff --git a/src/onepassword/py.typed b/src/onepassword/py.typed new file mode 100644 index 00000000..e69de29b