• 18.3a1 5fb5cc8c2b

    Only use trailing commas in function signatures when it's safe

    Ghost released this 2018-03-16 10:44:09 +08:00 | 1972 commits to main since this release

    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

    Downloads