Skip to content

LGTM.com - false positive Python 3.6: f-string with a tuple inside braces show the SyntaxError. #1990

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

Closed
denis-trofimov opened this issue Sep 21, 2019 · 1 comment
Assignees
Labels
false-positive in progress This issue is being addressed. Python

Comments

@denis-trofimov
Copy link

Description of the false positive

Python 3.6: f-string with a tuple inside braces show the SyntaxError.

It is valid and tested in pytest

f"({shape[0], shape[1]}), ({shape[2], shape[3]})" 

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/TheAlgorithms/Python/snapshot/adb05a7df87d9b1f8518d7bc1d19db4f2f98d3d9/files/matrix/matrix_operation.py?sort=name&dir=ASC&mode=heatmap#x7b42a1e228ab0aad:1

@tausbn
Copy link
Contributor

tausbn commented Nov 18, 2019

A fix for this has been created, and it should hopefully go live within the next few weeks. I will close this issue at that point.

@tausbn tausbn closed this as completed Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false-positive in progress This issue is being addressed. Python
Projects
None yet
Development

No branches or pull requests

4 participants