]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix bug introduced in #3564. (#3615)
authorYilei "Dolee" Yang <yileiyang@google.com>
Sun, 19 Mar 2023 14:43:39 +0000 (07:43 -0700)
committerGitHub <noreply@github.com>
Sun, 19 Mar 2023 14:43:39 +0000 (07:43 -0700)
src/black/lines.py

index b2bdcc441b48c80c7f1d8d279bbb11cf364fafbf..fb5933ecbfbf633dc1d701571d8abfa2ee2c6b58 100644 (file)
@@ -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