You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/py_utils/headers.py:1: error: Cannot find implementation or library stub for module named "secure" [import-not-found]
src/py_utils/headers.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
It'd be great if the library provided typing for Mypy 😁
The text was updated successfully, but these errors were encountered:
OscarVanL
changed the title
Add Mypy library stubs / typing
Suggestion: Add Mypy library stubs / typing
Oct 22, 2024
Thanks for the suggestion, Oscar! That’s an excellent point about Mypy. I’ll look into why Mypy is showing errors and work on a fix for the next release. Appreciate your contribution!
Also, @OscarVanL, could you please double-check that secure is installed correctly in your environment? According to the Mypy documentation (https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports), the ‘Cannot find implementation’ error could happen if the package isn’t installed or if the py.typed marker isn’t being detected. Let me know if that helps, and I’ll continue to investigate on my side as well!
Thanks, I did double-check this and the package is installed in the environment I run mypy. I have seen this same error message in the past when packages are untyped (or for whatever reason mypy can't use the typing).
I get this error from Mypy:
It'd be great if the library provided typing for Mypy 😁
The text was updated successfully, but these errors were encountered: