Syntax error for passing kwargs to a function inside fstrings #45
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
Passing a dictionary to a function inside an fstring should not show any syntax errors.
Actual behaviour
Pylance shows syntax error when encountering a dict (
{}
) inside anfstring
Logs
Doubt the logs would be useful, but here they are anyway-
Code Snippet / Additional information
Output after
python ./test.py
in the commandline-The code doesn't actually cause a syntax error as you can see. But Pylance reports syntax error-
It also shows a parameter missing error, however that's certainly a side effect of the syntax error-
The text was updated successfully, but these errors were encountered: