DEV Community

Discussion on: The Comprehensive Guide to mypy

Collapse
 
mhihasan profile image
Hasanul Islam • Edited

Superb!
I am using pyproject.toml as a configuration file and stubs folder for my custom-types for third party packages.

Running from CLI, mypy . runs successfully. but when it runs at pre-commit, it fails (probably assuming stubs not present and thus return type is Any)