-
Notifications
You must be signed in to change notification settings - Fork 767
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
matplotlib: missing types #462
Comments
Yes, it does, and the matplotlib stubs aren't fully complete yet (at least for anything but autocompletion, our original reason for putting them there). You can override them by adding |
Oops! @jakebailey I guess you didn't want to close this yet. I reopened it. |
Yes, I need to find some time to fix the matplotlib stubs. |
This comment has been minimized.
This comment has been minimized.
This issue has been fixed in version 2021.3.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202130-3-march-2021 |
Do I understand correctly that Pylance bundles type stub files for popular libraries like matplotlib?
I get type errors for some things and I wonder if they are just missing from the bundled stub files.
For example, it doesn't recognize that
Axes
objects have aclear
method and this import gives an error:Can I add my own versions of these stub files in the
typings
subdirectory of my project to override them?If so, what file names do they need to have?
The text was updated successfully, but these errors were encountered: