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
It should work as-is with pyright and mypy, but for Pylance you'll have to remove the bundled stubs every time you update the extension. It can be found at: %HOMEPATH%\.vscode\extensions\ms-python.vscode-pylance-<VERSION>\dist\bundled\stubs\cv2-stubs (where <VERSION> is your current Pylance version).
If you have an issue with those generated stubs, you can raise it upstream.
The
cv2/__init__.pyi
defines several type aliases that are invalid because they refer to themselves. This leaves themUnknown
.Here are a few examples:
Since
_mod_cv2
refers back to this same type stub, these are effectively equivalent to:Pyright correctly flags these as errors in the stub. They should be fixed.
The text was updated successfully, but these errors were encountered: