Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
logging-fstring-interpolation
false positive (#7846)
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 978d1ab)
- Loading branch information
1 parent
86b8c64
commit c1715d7
Showing
4 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Fix ``logging-fstring-interpolation`` false positive raised when logging and f-string with ``%s`` formatting. | ||
|
||
Closes #4984 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/functional/l/logging/logging_fstring_interpolation_py37.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
logging-fstring-interpolation:5:0:5:23::Use lazy % formatting in logging functions:UNDEFINED | ||
logging-fstring-interpolation:8:0:8:31::Use lazy % formatting in logging functions:UNDEFINED | ||
f-string-without-interpolation:10:14:10:25::Using an f-string that does not have any interpolated variables:UNDEFINED | ||
f-string-without-interpolation:11:14:11:25::Using an f-string that does not have any interpolated variables:UNDEFINED |