Skip to content

Invalid code after indented # fmt: off #569

@ambv

Description

@ambv

Input:

def x():
    # fmt: off
    return

def y():
    return

Invalid code produced:

def x():
    # fmt: off
    return

    def y():
        return

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: invalid codeBlack destroyed a valid Python fileF: fmtofffmt: off implementationT: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions