-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Mention pip in Quick start. #492
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
Conversation
Yay, I managed to mix 2 changes, but I hope they can be merged together.
Feel free to shout at me for no tests. |
Looks pretty good! Thanks for creating this PR! I'm going to play around with installing using pip and using I'm drawn towards changing the name of the option to something like |
I've changed the flag name to |
Mention pip in Quick start and support --use-python-path
This does not work correctly if the imported file in turn imports another. Here is a test program:
Runs fine with python, fails with numpy as follows:
Would love to start using this on my code ... |
@dedoig I've looked into the error you've found. In |
Thanks, @spkersten. Is there a way to skip mypy type-checking (or whatever processing it is trying to do and when it dies) of the numpy import (transitively) and still type check my remaining code? Also, is there a standard place to search for mypy stub files for numpy and others common libs? |
Maybe # type: ignore on the import line? On Tuesday, April 28, 2015, Dedoig [email protected] wrote:
--Guido van Rossum (on iPad) |
import numpy as np # type: ignore ## seemed to help. But then I get this (regardless of # type: ignore): from functools import partial ==> check-mypy.py, line 2: Module has no attribute 'partial' |
@Dedoig I think that your last message is because the stub that mypy uses for Edit: for me adding |
It would be beneficial to mention ease of installation in the README.