We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TMP101 is flagged for the open() call when using f-strings.
Concatenating the same variable with the + operator is correctly detected, even though both versions are functionally identical.
Code sample 1 triggers TMP101: with open(f"/tmp/{name}.html", "w") as html_file:
with open(f"/tmp/{name}.html", "w") as html_file:
Code sample 2 does not trigger TMP101: with open(f"/tmp/" + name + ".html", "w") as html_file:
with open(f"/tmp/" + name + ".html", "w") as html_file:
I believe the code for this is in this area:
pycharm-security/src/main/java/security/validators/HardcodedTempFileInspection.kt
Line 27 in 407ea37
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TMP101 is flagged for the open() call when using f-strings.
Concatenating the same variable with the + operator is correctly detected, even though both versions are functionally identical.
Code sample 1 triggers TMP101:
with open(f"/tmp/{name}.html", "w") as html_file:
Code sample 2 does not trigger TMP101:
with open(f"/tmp/" + name + ".html", "w") as html_file:
I believe the code for this is in this area:
pycharm-security/src/main/java/security/validators/HardcodedTempFileInspection.kt
Line 27 in 407ea37
The text was updated successfully, but these errors were encountered: