Correct spelling mistakes (#3599)

This commit is contained in:
Casey Korver 2023-03-11 09:43:31 -06:00 committed by GitHub
parent d16a1dbd05
commit 6ffc5f7b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ def strtobool(text):
return True return True
if text.lower() in ['n', 'no', 'f', 'false', 'off', '0']: if text.lower() in ['n', 'no', 'f', 'false', 'off', '0']:
return False return False
raise ValueError(f"{text} is not convertable to boolean") raise ValueError(f"{text} is not convertible to boolean")
class Flag(collections.namedtuple("FlagBase", "name, cast")): class Flag(collections.namedtuple("FlagBase", "name, cast")):
@property @property

View File

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

View File

@ -107,7 +107,7 @@ def __next__(self) -> Any:
def can_advance(self, to: int) -> bool: def can_advance(self, to: int) -> bool:
# Try to eat, fail if it can't. The eat operation is cached # Try to eat, fail if it can't. The eat operation is cached
# so there wont be any additional cost of eating here # so there won't be any additional cost of eating here
try: try:
self.eat(to) self.eat(to)
except StopIteration: except StopIteration:

View File

@ -26,15 +26,15 @@
("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"], ("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"],
} }
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")] 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")]
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."] 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."]
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")} 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")}
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."} 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."}
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")) 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"))
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.",) 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.",)
@ -410,7 +410,7 @@ def foo():
( (
"This is a really long string that can't possibly be expected to fit all" "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" " 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." " be wrapped in parens when splitting to avoid implicit str concatenation."
), ),
short_call("arg", {"key": "value"}), short_call("arg", {"key": "value"}),
( (
@ -431,7 +431,7 @@ def foo():
( (
"This is a really long string that can't possibly be expected to fit all" "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" " 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." " wrapped in parens when splitting to avoid implicit str concatenation."
), ),
short_call("arg", {"key": "value"}), short_call("arg", {"key": "value"}),
( (
@ -452,7 +452,7 @@ def foo():
( (
"This is a really long string that can't possibly be expected to fit all" "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" " 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." " be wrapped in parens when splitting to avoid implicit str concatenation."
), ),
short_call("arg", {"key": "value"}), short_call("arg", {"key": "value"}),
( (

View File

@ -85,7 +85,7 @@ def foo2(list_a, list_b):
def foo3(list_a, list_b): def foo3(list_a, list_b):
return ( return (
# Standlone comment but weirdly placed. # Standalone comment but weirdly placed.
User.query.filter(User.foo == "bar") User.query.filter(User.foo == "bar")
.filter( .filter(
db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b)) db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))