Skip to content

Mypy not catching correctly the toml library #446

@uriii3

Description

@uriii3

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions