Skip to content
New issue

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

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

Already on GitHub? # to your account

mypy says Library stubs not installed for "yaml" #72

Closed
nesnoj opened this issue Apr 21, 2023 · 0 comments · Fixed by #75
Closed

mypy says Library stubs not installed for "yaml" #72

nesnoj opened this issue Apr 21, 2023 · 0 comments · Fixed by #75

Comments

@nesnoj
Copy link
Member

nesnoj commented Apr 21, 2023

With the pre-commit introduced in #64 this message persists:

digipipe/scripts/config.py:8: error: Library stubs not installed for "yaml"  [import]
digipipe/scripts/config.py:8: note: Hint: "python3 -m pip install types-PyYAML"
digipipe/scripts/config.py:8: note: (or run "mypy --install-types" to install all missing stub packages)
digipipe/scripts/config.py:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Both suggested solutions (pip install types-PyYAML and mypy --install-types) fixed the error. Do you wanna add it to the package list? Or shall we suppress it like @henhuy did as described in #64 (comment)?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants