X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e74a05286b8b0c4a65419d21c4c17a33d9d7e15c..9c8464ca7ddd48d1c19112d895ae12d783f01563:/src/black/linegen.py diff --git a/src/black/linegen.py b/src/black/linegen.py index c582b2d..f7d3655 100644 --- a/src/black/linegen.py +++ b/src/black/linegen.py @@ -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)