X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/dd4477b70120bf736144c38ec50144253f34dce2..31fbd1982f9511c5b7bce93eb133110811f90e0f:/black.py diff --git a/black.py b/black.py index c48b8d1..a1a3468 100644 --- a/black.py +++ b/black.py @@ -1741,7 +1741,7 @@ def is_split_before_delimiter(leaf: Leaf, previous: Leaf = None) -> int: leaf.type == token.DOT and leaf.parent and leaf.parent.type not in {syms.import_from, syms.dotted_name} - and (previous is None or previous.type != token.NAME) + and (previous is None or previous.type in CLOSING_BRACKETS) ): return DOT_PRIORITY