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
Assign mode to fromarray #5707
Comments
Hi. I'm not able to replicate the warning, so here are a few questions.
|
I use VS Code with extension Pylance And numpy has version 1.20.3 |
As you've likely gathered, we don't provide typing for Line 2799 in e122e8f
According to microsoft/pylance-release#659, Pylance comes bundled with .pyi files for PIL, and microsoft/pylance-release#994 was an issue where a user reports a typo in a PIL stub. However, looking at https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md, I see that on July 6,
So I think that the problem actually lies in https://github.com/python/typeshed - |
@Erhie is that enough information for you to take it from here? |
Thank You! Now I had success by uninstall and newly installed Pillow and For further interests I asked also: |
What did you do?
What did you expect to happen?
that there is no warning belonging mode in
Image.fromarray( img_array , mode = origPil_mode )
What actually happened?
Warning:
The text was updated successfully, but these errors were encountered: