bindings: python: add py.typed marker
PATCH 1/1 bindings: python: add py.typed marker
Per PEP 561 [0], the marker is used by type checkers like mypy to recognize that the library is typed.
[0]: https://peps.python.org/pep-0561/#packaging-type-information
Signed-off-by Vincent Fazio <[email protected]>
--- bindings/python/gpiod/py.typed | 0 bindings/python/setup.py | 1 + 2 files changed, 1 insertion(+) create mode 100644 bindings/python/gpiod/py.typed
bindings/python/gpiod/py.typed new file +0 -0
bindings/python/setup.py +1 -0
@@ -224,6 +224,7 @@ setup( name="gpiod", url="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git", packages=find_packages(exclude=["tests", "tests.*"]), + package_data={"gpiod": ["py.typed"]}, python_requires=">=3.9.0", ext_modules=[gpiod_ext], cmdclass={"build_ext": build_ext, "sdist": sdist},
Signature · 1 line
2.34.1
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 6 lines · Vincent Fazio
Per PEP 561 [0], the marker is used by type checkers like mypy to recognize that the library is typed.
[0]: https://peps.python.org/pep-0561/#packaging-type-information
Applied, thanks!
[1/1] bindings: python: add py.typed marker
commit: c840e17a9ca05e44ec823b77843ab0e8b88691c3
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>