Fix typos in comments: assignement -> assignment (#3556)
This commit is contained in:
parent
e74a05286b
commit
9c8464ca7d
@ -762,7 +762,7 @@ def _maybe_split_omitting_optional_parens(
|
|||||||
# the split is right after `=`
|
# the split is right after `=`
|
||||||
and len(rhs.head.leaves) >= 2
|
and len(rhs.head.leaves) >= 2
|
||||||
and rhs.head.leaves[-2].type == token.EQUAL
|
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])
|
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
|
# the left side of assignment is short enough (the -1 is for the ending
|
||||||
# optional paren)
|
# optional paren)
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
] = lambda obj: obj.some_long_named_method()
|
] = 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.
|
# exactly line length limit + 1, it won't be split like that.
|
||||||
xxxxxxxxx_yyy_zzzzzzzz[
|
xxxxxxxxx_yyy_zzzzzzzz[
|
||||||
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
|
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
arg2,
|
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.
|
# 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
|
xxxxxxxxx_yyy_zzzzzzzz[xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)] = 1
|
||||||
|
|
||||||
@ -31,7 +31,7 @@
|
|||||||
arg2,
|
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.
|
# exactly line length limit + 1, it won't be split like that.
|
||||||
xxxxxxxxx_yyy_zzzzzzzz[
|
xxxxxxxxx_yyy_zzzzzzzz[
|
||||||
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
|
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user