From: Ɓukasz Langa Date: Fri, 16 Mar 2018 02:25:23 +0000 (-0700) Subject: Only use trailing commas in function signatures when it's safe X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5fb5cc8c2bd5a0bb1359fb69cdb705b55afade52?hp=5fb5cc8c2bd5a0bb1359fb69cdb705b55afade52 Only use trailing commas in function signatures when it's safe Trailing commas after * or ** in a function signature are only safe for Python 3.6 code. So now Black checks whether the file was already Python 3.6 to begin with. If so, trailing commas are used in such cases. Otherwise, they're not. When * and ** don't appear in a function signature, the trailing comma is always safe. Fixes #8 ---