From: Yilei "Dolee" Yang Date: Sun, 19 Mar 2023 14:43:39 +0000 (-0700) Subject: Fix bug introduced in #3564. (#3615) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/dba3c2695c59fdb11825dbdf8f3b0ab6e0b368b2 Fix bug introduced in #3564. (#3615) --- diff --git a/src/black/lines.py b/src/black/lines.py index b2bdcc4..fb5933e 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -598,7 +598,7 @@ class EmptyLineTracker: before = 1 elif ( not depth - and self.previous_defs[-1] + and self.previous_defs[-1].depth and current_line.leaves[-1].type == token.COLON and ( current_line.leaves[0].value