Skip to content

Conversation

@MeGaGiGaGon
Copy link
Collaborator

It looks like #2248 was fixed at some point, probably as part of the 2024 release. This adds an anti-regression test for, and closes #2248.

@JelleZijlstra
Copy link
Collaborator

I think this one is already tested exhaustively in https://github.com/psf/black/blob/main/tests/data/cases/conditional_expression.py .

@MeGaGiGaGon
Copy link
Collaborator Author

Yep, looks like github search doesn't like multiline code. Sorry for the churn

@MeGaGiGaGon MeGaGiGaGon closed this Dec 9, 2024
@JelleZijlstra
Copy link
Collaborator

For what it's worth I found it locally with git grep '^ *else '.

@MeGaGiGaGon MeGaGiGaGon deleted the add-2248-tests branch June 10, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatting of conditional expressions in named function arguments

2 participants