pyright incorrectly allows & parses await
in lambdas
#9406
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Describe the bug
await
statements are never allowed in lambda's, but pyright sees no problem with them and treats them as if they're fully valid and will work. Trying to run a file with await in lambda will give aSyntaxError
, and mypy also gives an error.Code or Screenshots
VS Code extension or command-line
command line, version 1.1.388
The text was updated successfully, but these errors were encountered: