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

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:

Better manage return annotation brackets (#2990)
authorJoe Young <80432516+jpy-git@users.noreply.github.com>
Sat, 9 Apr 2022 14:36:05 +0000 (15:36 +0100)
committerGitHub <noreply@github.com>
Sat, 9 Apr 2022 14:36:05 +0000 (10:36 -0400)
commit98fcccee55acba04afdd933676f56927cfe9bbe4
treefb55ea3d31f282f57ecf9f5c4c7b175956fdab78
parentf6188ce6dcde3fcad381c52ecc74374e7d0579c9
Better manage return annotation brackets (#2990)

Allows us to better control placement of return annotations by:

a) removing redundant parens
b) moves very long type annotations onto their own line

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
CHANGES.md
src/black/linegen.py
src/black/mode.py
tests/data/return_annotation_brackets.py [new file with mode: 0644]
tests/test_format.py