-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comma in f-string is detected as "Unexpected token at end of expression " #551
Comments
Thanks for the bug report. This will be fixed in the next release. |
Thanks! I'm loving pylance so far :) |
This issue has been fixed in version 2020.11.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020110-4-november-2020 |
Awesome, thank you very much. |
I'd also like to point out this is till finding errors with: self.error(f'Get Temp Dict: {Error=}', level='ERROR') Where the problem seems to be any variable in an F-string that has an equal sign. In this example it is {Error=} where it has a problem with the = . |
@Travis-Prall, if you think you are seeing a bug with f-string formatting, could you please file a new bug report? This issue has been closed for a long time, and the issue you seem to be seeing is unrelated to the original problem in this bug report. I'm not able to repro the problem you are seeing. Perhaps there's additional context that's needed. It would be helpful if you could provide a self-contained example. For example, I don't know where the symbol |
Environment data
Expected behaviour
No issues with the f-string.
Actual behaviour
pylance detects an error in the f-string, next to the comma: "Unexpected token at end of expression"
Logs
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: