X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/811de5f36bb1bb2bc7e14c186cf1af6badb77475..e1506769a428889bc66964edabf76476433c031a:/src/black/lines.py?ds=sidebyside 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