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

Better message when we can't find a module #952

Closed
JukkaL opened this issue Oct 18, 2015 · 1 comment
Closed

Better message when we can't find a module #952

JukkaL opened this issue Oct 18, 2015 · 1 comment
Labels

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Oct 18, 2015

If mypy can't find a stub or implementation for a module, it says No module named 'x'. This can be pretty confusing for first-time users. Instead, we should say something like No implementation or stub file found for module 'x'.

Optionally, give a hint about MYPYPATH and the stub generator as well.

@JukkaL JukkaL changed the title Better message when can't find a module Better message when we can't find a module Oct 18, 2015
@JukkaL JukkaL closed this as completed in aa1780a Nov 23, 2015
@JukkaL
Copy link
Collaborator Author

JukkaL commented Nov 23, 2015

Now mypy tries to detect std library modules and 3rd party modules without stubs (at least the common ones) and gives a different error message based on the type of the module/package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant