X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/32dd9ecb2e9dec8b29c07726d5713ed5b4c36547..889a8d5dd27a73aa780e989a850bbdaaa9946a13:/src/black/lines.py diff --git a/src/black/lines.py b/src/black/lines.py index c602aa6..7d50f02 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -277,7 +277,9 @@ class Line: if self.is_import: return True - if not is_one_tuple_between(closing.opening_bracket, closing, self.leaves): + if closing.opening_bracket is not None and not is_one_tuple_between( + closing.opening_bracket, closing, self.leaves + ): return True return False