X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d7a28dd78631fb962da95fb2d2de0e18ca6754a4..dba3c2695c59fdb11825dbdf8f3b0ab6e0b368b2:/src/black/lines.py 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