Skip to content

Black 24.1 no longer removes blanks within blocks #4193

@xtfocus

Description

@xtfocus

I tried two black versions: black 24.1.1 and 23.3.0. Only the 23.3.0 version removes the REDUNDANT SPACE in the code below

   if not best_rate:
        # REDUNDANT SPACE
        print(f"No match found for {phone_number}")
    else:
        print(best_rate)

I cannot find where this change is documented in the change log here
I would love to know if this change is intended and why. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions