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

Mypy not catching correctly the toml library #446

Open
uriii3 opened this issue Dec 5, 2024 · 0 comments
Open

Mypy not catching correctly the toml library #446

uriii3 opened this issue Dec 5, 2024 · 0 comments

Comments

@uriii3
Copy link

uriii3 commented Dec 5, 2024

We have a precommit action in our repo. The Mypy library throws an error when we are using the toml library:

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

I've done all the things from Mypy and it seems like it doesn't work, I guess the problem then might come from your side (?). Not sure how can I be more specific (I know I'm not being very detailed).

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

1 participant