]> 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:

Detect `'@' dotted_name '(' ')' NEWLINE` as a simple decorator (#2182)
authorRichard Si <63936253+ichard26@users.noreply.github.com>
Tue, 4 May 2021 08:46:46 +0000 (04:46 -0400)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 08:46:46 +0000 (10:46 +0200)
commite42f9921e291790202147c1e3dc1a3df7036c652
tree9abf8f54711c0cfe36b84774e8a72ba449c837af
parenta18c7bc09942951e93cbd142fb7384aa2af18951
Detect `'@' dotted_name '(' ')' NEWLINE` as a simple decorator (#2182)

Previously the RELAXED_DECORATOR detection would be falsely True on that
example. The problem was that an argument-less parentheses pair didn't
pass the `is_simple_decorator_trailer` check even it should. OTOH a
parentheses pair containing an argument or more passed as expected.
CHANGES.md
src/black/__init__.py
tests/data/decorators.py