You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I had success by uninstall and newly installed Pillow and
purge in ....vscode\extensions\ms-python.vscode-pylance-2021.9.1\dist\typeshed-fallback\stubs\Pillow
and now there is no warning for this issue.
Erhy
The text was updated successfully, but these errors were encountered:
This is deliberate. mode only accepts the values specified in the Literal value. If your code uses a variable for the mode parameter, I suggest to annotate it with PIL.Image._Mode. This could require quoting if using older Python versions and not using from __future__ import annotations. We also have a help forum for further questions: https://github.com/python/typing/discussions
Asking
microsoft/pylance-release#1798
Jake Bailey means it should be answered here.
But I had success by uninstall and newly installed Pillow and
purge in ....vscode\extensions\ms-python.vscode-pylance-2021.9.1\dist\typeshed-fallback\stubs\Pillow
and now there is no warning for this issue.
Erhy
The text was updated successfully, but these errors were encountered: