Fix typos in comments: assignement -> assignment (#3556)

This commit is contained in:
Yilei "Dolee" Yang 2023-02-07 14:48:09 -08:00 committed by GitHub
parent e74a05286b
commit 9c8464ca7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -762,7 +762,7 @@ def _maybe_split_omitting_optional_parens(
# the split is right after `=`
and len(rhs.head.leaves) >= 2
and rhs.head.leaves[-2].type == token.EQUAL
# the left side of assignement contains brackets
# the left side of assignment contains brackets
and any(leaf.type in BRACKETS for leaf in rhs.head.leaves[:-1])
# the left side of assignment is short enough (the -1 is for the ending
# optional paren)

View File

@ -69,7 +69,7 @@
] = lambda obj: obj.some_long_named_method()
# Make when when the left side of assignement plus the opening paren "... = (" is
# Make when when the left side of assignment plus the opening paren "... = (" is
# exactly line length limit + 1, it won't be split like that.
xxxxxxxxx_yyy_zzzzzzzz[
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)

View File

@ -7,7 +7,7 @@
arg2,
)
# Make when when the left side of assignement plus the opening paren "... = (" is
# Make when when the left side of assignment plus the opening paren "... = (" is
# exactly line length limit + 1, it won't be split like that.
xxxxxxxxx_yyy_zzzzzzzz[xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)] = 1
@ -31,7 +31,7 @@
arg2,
)
# Make when when the left side of assignement plus the opening paren "... = (" is
# Make when when the left side of assignment plus the opening paren "... = (" is
# exactly line length limit + 1, it won't be split like that.
xxxxxxxxx_yyy_zzzzzzzz[
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)