Skip to content

Commit 6ffc5f7

Browse files
authored
Correct spelling mistakes (#3599)
1 parent d16a1db commit 6ffc5f7

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

autoload/black.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def strtobool(text):
99
return True
1010
if text.lower() in ['n', 'no', 'f', 'false', 'off', '0']:
1111
return False
12-
raise ValueError(f"{text} is not convertable to boolean")
12+
raise ValueError(f"{text} is not convertible to boolean")
1313

1414
class Flag(collections.namedtuple("FlagBase", "name, cast")):
1515
@property

docs/contributing/issue_triage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ the details are different:
5959
1. _the issue is waiting for triage_
6060
2. **identified** - has been marked with a type label and other relevant labels
6161
3. **discussion** - the merits of the suggested changes are currently being discussed, a
62-
PR would be acceptable but would be at sigificant risk of being rejected
62+
PR would be acceptable but would be at significant risk of being rejected
6363
4. **accepted & awaiting PR** - it's been determined the suggested changes are OK and a
6464
PR would be welcomed (`S: accepted`)
6565
5. **closed**: - the issue has been resolved, reasons include:

src/blib2to3/pgen2/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __next__(self) -> Any:
107107

108108
def can_advance(self, to: int) -> bool:
109109
# Try to eat, fail if it can't. The eat operation is cached
110-
# so there wont be any additional cost of eating here
110+
# so there won't be any additional cost of eating here
111111
try:
112112
self.eat(to)
113113
except StopIteration:

tests/data/preview/long_strings.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
("This is a really long string that can't be expected to fit in one line and is used as a dict's key"): ["value1", "value2"],
2727
}
2828

29-
L1 = ["The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a list literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a list literal.", ("parens should be stripped for short string in list")]
29+
L1 = ["The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a list literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a list literal.", ("parens should be stripped for short string in list")]
3030

3131
L2 = ["This is a really long string that can't be expected to fit in one line and is the only child of a list literal."]
3232

33-
S1 = {"The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a set literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a set literal.", ("parens should be stripped for short string in set")}
33+
S1 = {"The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a set literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a set literal.", ("parens should be stripped for short string in set")}
3434

3535
S2 = {"This is a really long string that can't be expected to fit in one line and is the only child of a set literal."}
3636

37-
T1 = ("The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a tuple literal, so it's expected to be wrapped in parens when spliting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a tuple literal.", ("parens should be stripped for short string in list"))
37+
T1 = ("The is a short string", "This is a really long string that can't possibly be expected to fit all together on one line. Also it is inside a tuple literal, so it's expected to be wrapped in parens when splitting to avoid implicit str concatenation.", short_call("arg", {"key": "value"}), "This is another really really (not really) long string that also can't be expected to fit on one line and is, like the other string, inside a tuple literal.", ("parens should be stripped for short string in list"))
3838

3939
T2 = ("This is a really long string that can't be expected to fit in one line and is the only child of a tuple literal.",)
4040

@@ -410,7 +410,7 @@ def foo():
410410
(
411411
"This is a really long string that can't possibly be expected to fit all"
412412
" together on one line. Also it is inside a list literal, so it's expected to"
413-
" be wrapped in parens when spliting to avoid implicit str concatenation."
413+
" be wrapped in parens when splitting to avoid implicit str concatenation."
414414
),
415415
short_call("arg", {"key": "value"}),
416416
(
@@ -431,7 +431,7 @@ def foo():
431431
(
432432
"This is a really long string that can't possibly be expected to fit all"
433433
" together on one line. Also it is inside a set literal, so it's expected to be"
434-
" wrapped in parens when spliting to avoid implicit str concatenation."
434+
" wrapped in parens when splitting to avoid implicit str concatenation."
435435
),
436436
short_call("arg", {"key": "value"}),
437437
(
@@ -452,7 +452,7 @@ def foo():
452452
(
453453
"This is a really long string that can't possibly be expected to fit all"
454454
" together on one line. Also it is inside a tuple literal, so it's expected to"
455-
" be wrapped in parens when spliting to avoid implicit str concatenation."
455+
" be wrapped in parens when splitting to avoid implicit str concatenation."
456456
),
457457
short_call("arg", {"key": "value"}),
458458
(

tests/data/simple_cases/comments4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def foo2(list_a, list_b):
8585

8686
def foo3(list_a, list_b):
8787
return (
88-
# Standlone comment but weirdly placed.
88+
# Standalone comment but weirdly placed.
8989
User.query.filter(User.foo == "bar")
9090
.filter(
9191
db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))

0 commit comments

Comments
 (0)