-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport maintenance/2.17.x] Avoid
consider-using-f-string
on modu…
…los with brackets in template … (#8836) * Avoid `consider-using-f-string` on modulos with brackets in template (#8720) Brackets can be inconvenient in f-string expressions. Co-authored-by: Val Lorentz <[email protected]> Co-authored-by: Pierre Sassoulas <[email protected]>
- Loading branch information
1 parent
d690dd8
commit 1928589
Showing
7 changed files
with
30 additions
and
24 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 @@ | ||
Avoid ``consider-using-f-string`` on modulos with brackets in template. | ||
|
||
Closes #8720. |
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
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,30 +1,30 @@ | ||
consider-using-f-string:45:10:45:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:46:10:46:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:47:10:47:28:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:48:10:48:17:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:49:10:49:26:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:50:10:50:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:47:10:47:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:48:10:48:28:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:49:10:49:17:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:50:10:50:26:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:51:10:51:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:52:10:52:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:53:10:53:24:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:54:10:54:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:80:4:80:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:53:10:53:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:54:10:54:24:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:55:10:55:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:81:4:81:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:82:4:82:22:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:83:4:83:11:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:84:4:84:20:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:85:4:85:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:82:4:82:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:83:4:83:22:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:84:4:84:11:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:85:4:85:20:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:86:4:86:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:87:4:87:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:88:4:88:18:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:89:4:89:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:112:8:112:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:88:4:88:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:89:4:89:18:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:90:4:90:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:113:8:113:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:114:8:114:26:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:115:8:115:15:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:116:8:116:24:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:117:8:117:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:114:8:114:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:115:8:115:26:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:116:8:116:15:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:117:8:117:24:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:118:8:118:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:119:8:119:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:120:8:120:22:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:121:8:121:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:120:8:120:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:121:8:121:22:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED | ||
consider-using-f-string:122:8:122:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED |
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 was deleted.
Oops, something went wrong.
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