Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing py.typed marker #122

Open
JPHutchins opened this issue Jan 16, 2025 · 2 comments
Open

Missing py.typed marker #122

JPHutchins opened this issue Jan 16, 2025 · 2 comments

Comments

@JPHutchins
Copy link

The python bindings appear to be typed, but the module is missing the py.typed marker, so it will not be analyzed as such. Mypy provides guidance:

mypy my_script.py:

my_script.py:1: error: Skipping analyzing "gpiod": module is installed, but missing library stubs or py.typed marker  [import-untyped]
my_script..py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Cheers,
JP

@brgl
Copy link
Owner

brgl commented Jan 17, 2025

Hi! This is already fixed in master and will be released as part of python3-gpiod v2.3.0. I'm just finishing the readthedocs integration as libgpiod was missing proper online docs for a long time. Give it a couple more weeks, please.

@JPHutchins
Copy link
Author

Fixed by c840e17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants