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
Pyright's behavior is correct here. The special form Annotated is not compatible with type when used in a value expression. Annotated is intended to be used to be used in a type expression (an annotation), not in a value expression. Pyright previously didn't generate an error here as it should have. Mypy correct does. I've been working to make pyright more conformant with the official typing spec.
Describe the bug
See example code snippet
VS Code extension or command-line
Pylance v2024.2.1 (Pyright 1.1.348)
The text was updated successfully, but these errors were encountered: