-
Notifications
You must be signed in to change notification settings - Fork 787
Unknown symbols appear in Pillow import #1465
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
Comments
I'm going to transfer this issue to the pylance-releases repo because it's not related to core type checking functionality but instead relates to type stubs that ship with pylance. |
FWIW, pyright never shipped any stubs from python-type-stubs; those are there and are shipped with Pylance. The ones that were added to typeshed have more of the modules present, but I'd still like to compare (as the stubs I wrote weren't really used to create what was in typeshed, unfortunately). |
The next release of pyright and pylance will include the stubs from typeshed, which should include that I've sent python/typeshed#5692 and python/typeshed#5706 to upstream the hand-written types I've been maintaining in https://github.com/microsoft/python-type-stubs for Pylance, and they should make it into our next release. |
Thanks for the fix. |
This would have been fixed in 2021.7.0, but thanks to my brainfart, I forgot to delete the old stubs. It'll be fixed in a 2021.7.1 hotfix momentarily. |
This issue has been fixed in version 2021.7.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202171-6-july-2021 |
Describe the bug
It should be a correct import, but when I import the Pillow module, it appears with an unknown symbol.
To Reproduce
Expected behavior
I was hoping that Pillow's type hints would be supported.
Screenshots or Code

VS Code extension or command-line
Pylance version:
2021.6.2
Additional context
I think the reason for this issue is that the Pillow stubs in typeshed are not included in Pyright and refer to the old Pillow stubs in microsoft/python-type-stubs.
The latest stub for Pillow has been recently added to
typeshed
. (python/typeshed #5594)The text was updated successfully, but these errors were encountered: