-
Notifications
You must be signed in to change notification settings - Fork 766
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
include pandas, matplotlib and other bundled stubs #659
Comments
Thanks for the suggestion. There are some licensing questions/details to work out, but I agree with the goal that you've stated above, and we're working to address that goal. It will probably not involve a separately installable pypi distribution, however. |
+1 for pandas and numpy |
For libraries that include stubs, install them as you would normally. In some cases, you will need to update to the latest package version. Numpy, for example, has only recently added in-package stubs. For libraries that publish company "stub packages" (whose names end in "-stubs"), install those into your Python environment. For other libraries that do not yet publish their own stubs, if you can find stubs (or want to create minimal versions of stubs yourself), you can place these in your local stubs folder. Depending on your project, you may want to check these in to your repo so other members of your team have access to them as well. |
A quick update on this request. The stub files that ship with Pylance are very incomplete. They're sufficient for basic type completions, but they are not complete enough for strict type checking or for submission to typeshed. Additional work needs to be done on them first. Once each stub is far enough along, it will be submitted to typeshed and get incorporated into pyright. |
@m3at Unfortunately the |
I'm going to mark this as a duplicate of #277. We already intend to publish the stubs somewhere (in the works but it takes a lot to publish a repo), though I'm not so sure about a PyPI package immediately.
|
Pylance bundles stubs for:
Pyright doesn't.
Would be nice to have a consistent user experience when using Pylance in VSCode and Pyright on the CLI and in CI/CD.
If this isn't possible, would it be possible to provide these stubs (in particular pandas and matplotlib) as a separately installable pypi distribution?
The text was updated successfully, but these errors were encountered: