X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/811de5f36bb1bb2bc7e14c186cf1af6badb77475..b517dfb396a82ef263f0d366c4dc107451cf0c3c:/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