Skip to content

Commit 4cdf922

Browse files
Elazrod56DanielNoord
authored andcommitted
Modified all occurences of "a f-string" to "an f-string"
1 parent 7f93962 commit 4cdf922

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

doc/user_guide/checkers/features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,9 @@ Refactoring checker Messages
916916
comparison inside a condition to determine if a sequence is empty. Instead of
917917
coercing the length to a boolean, either rely on the fact that empty
918918
sequences are false or compare the length against a scalar.
919-
:consider-using-f-string (C0209): *Formatting a regular string which could be a f-string*
919+
:consider-using-f-string (C0209): *Formatting a regular string which could be an f-string*
920920
Used when we detect a string that is being formatted with format() or % which
921-
could potentially be a f-string. The use of f-strings is preferred. Requires
921+
could potentially be an f-string. The use of f-strings is preferred. Requires
922922
Python 3.6 and ``py-version >= 3.6``.
923923
:use-maxsplit-arg (C0207): *Use %s instead*
924924
Emitted when accessing only the first or last element of str.split(). The
@@ -1308,7 +1308,7 @@ Unsupported Version checker Messages
13081308
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13091309
:using-f-string-in-unsupported-version (W2601): *F-strings are not supported by all versions included in the py-version setting*
13101310
Used when the py-version set by the user is lower than 3.6 and pylint
1311-
encounters a f-string.
1311+
encounters an f-string.
13121312
:using-final-decorator-in-unsupported-version (W2602): *typing.final is not supported by all versions included in the py-version setting*
13131313
Used when the py-version set by the user is lower than 3.8 and pylint
13141314
encounters a ``typing.final`` decorator.

doc/whatsnew/2/2.12/full.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Release date: 2021-11-24
8383
and allows it to be checked against actual output in a test.
8484

8585
* Fix a crash in the ``check_elif`` extensions where an undetected if in a comprehension
86-
with an if statement within a f-string resulted in an out of range error. The checker no
86+
with an if statement within an f-string resulted in an out of range error. The checker no
8787
longer relies on counting if statements anymore and uses known if statements locations instead.
8888
It should not crash on badly parsed if statements anymore.
8989

pylint/checkers/refactoring/recommendation_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ class RecommendationChecker(checkers.BaseChecker):
5454
"are more efficient than ``sets``.",
5555
),
5656
"C0209": (
57-
"Formatting a regular string which could be a f-string",
57+
"Formatting a regular string which could be an f-string",
5858
"consider-using-f-string",
5959
"Used when we detect a string that is being formatted with format() or % "
60-
"which could potentially be a f-string. The use of f-strings is preferred. "
60+
"which could potentially be an f-string. The use of f-strings is preferred. "
6161
"Requires Python 3.6 and ``py-version >= 3.6``.",
6262
),
6363
}

pylint/checkers/unsupported_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class UnsupportedVersionChecker(BaseChecker):
3434
"F-strings are not supported by all versions included in the py-version setting",
3535
"using-f-string-in-unsupported-version",
3636
"Used when the py-version set by the user is lower than 3.6 and pylint encounters "
37-
"a f-string.",
37+
"an f-string.",
3838
),
3939
"W2602": (
4040
"typing.final is not supported by all versions included in the py-version setting",

tests/functional/c/consider/consider_using_f_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Test to see if a f-string would be possible and consider-using-f-string should be raised"""
1+
"""Test to see if an f-string would be possible and consider-using-f-string should be raised"""
22
# pylint: disable=unused-variable, invalid-name, missing-function-docstring, pointless-statement
33
# pylint: disable=expression-not-assigned, repeated-keyword, too-many-locals
44

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
consider-using-f-string:45:10:45:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
2-
consider-using-f-string:46:10:46:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
3-
consider-using-f-string:47:10:47:28:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
4-
consider-using-f-string:48:10:48:17:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
5-
consider-using-f-string:49:10:49:26:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
6-
consider-using-f-string:50:10:50:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
7-
consider-using-f-string:51:10:51:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
8-
consider-using-f-string:52:10:52:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
9-
consider-using-f-string:53:10:53:24:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
10-
consider-using-f-string:54:10:54:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED
11-
consider-using-f-string:80:4:80:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
12-
consider-using-f-string:81:4:81:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
13-
consider-using-f-string:82:4:82:22:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
14-
consider-using-f-string:83:4:83:11:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
15-
consider-using-f-string:84:4:84:20:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
16-
consider-using-f-string:85:4:85:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
17-
consider-using-f-string:86:4:86:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
18-
consider-using-f-string:87:4:87:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
19-
consider-using-f-string:88:4:88:18:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
20-
consider-using-f-string:89:4:89:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED
21-
consider-using-f-string:112:8:112:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
22-
consider-using-f-string:113:8:113:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
23-
consider-using-f-string:114:8:114:26:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
24-
consider-using-f-string:115:8:115:15:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
25-
consider-using-f-string:116:8:116:24:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
26-
consider-using-f-string:117:8:117:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
27-
consider-using-f-string:118:8:118:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
28-
consider-using-f-string:119:8:119:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
29-
consider-using-f-string:120:8:120:22:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
30-
consider-using-f-string:121:8:121:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED
1+
consider-using-f-string:45:10:45:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
2+
consider-using-f-string:46:10:46:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
3+
consider-using-f-string:47:10:47:28:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
4+
consider-using-f-string:48:10:48:17:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
5+
consider-using-f-string:49:10:49:26:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
6+
consider-using-f-string:50:10:50:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
7+
consider-using-f-string:51:10:51:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
8+
consider-using-f-string:52:10:52:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
9+
consider-using-f-string:53:10:53:24:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
10+
consider-using-f-string:54:10:54:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED
11+
consider-using-f-string:80:4:80:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
12+
consider-using-f-string:81:4:81:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
13+
consider-using-f-string:82:4:82:22:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
14+
consider-using-f-string:83:4:83:11:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
15+
consider-using-f-string:84:4:84:20:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
16+
consider-using-f-string:85:4:85:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
17+
consider-using-f-string:86:4:86:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
18+
consider-using-f-string:87:4:87:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
19+
consider-using-f-string:88:4:88:18:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
20+
consider-using-f-string:89:4:89:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED
21+
consider-using-f-string:112:8:112:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
22+
consider-using-f-string:113:8:113:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
23+
consider-using-f-string:114:8:114:26:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
24+
consider-using-f-string:115:8:115:15:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
25+
consider-using-f-string:116:8:116:24:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
26+
consider-using-f-string:117:8:117:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
27+
consider-using-f-string:118:8:118:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
28+
consider-using-f-string:119:8:119:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
29+
consider-using-f-string:120:8:120:22:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
30+
consider-using-f-string:121:8:121:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
consider-using-f-string:14:24:14:34:Number.__str__:Formatting a regular string which could be a f-string:UNDEFINED
1+
consider-using-f-string:14:24:14:34:Number.__str__:Formatting a regular string which could be an f-string:UNDEFINED

0 commit comments

Comments
 (0)