-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Type checking silently skips bad typing after encountering module cattr #6643
Comments
Non-annotated functions are not checked, use |
Wow, I've been using MyPy for a year and didn't realize it wasn't checking those at all. I see it in the documentation now, but I guess I hadn't ever really read the intro bits. Kind of terrifying, to be honest, but good to know. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure whether this has anything to do with
cattrs
specifically, but it does seem to be related to the location of the usage of that module within the test file. Any type error placed before its first usage is correctly caught, and any (that I've tried) placed after it is not correctly caught.Bug
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
I would expect similar errors for lines 28, 29, 36, and 37.
0.700, 3.7.2
Do you see the same issue after installing mypy from Git master?
Yes
--ignore-missing-imports
, but it happens with or without it.The text was updated successfully, but these errors were encountered: