Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Black's parenthesize-long-type-hints preview style #9102

Closed
wants to merge 2 commits into from

Conversation

MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Dec 12, 2023

Summary

This PR implements Black's parenthesize_long_type_hints preview style.

The gist of the new formatting is to parenthesize and indent long-type annotations.

Closes #8894

Test Plan

TODO

@MichaReiser MichaReiser force-pushed the prefer_splitting_right_hand_side_of_assignments branch from ed58d9b to 7c7f6b9 Compare December 12, 2023 03:26
Base automatically changed from prefer_splitting_right_hand_side_of_assignments to main December 13, 2023 03:43
@MichaReiser
Copy link
Member Author

We're putting the implementation of parenthesizing-long-type-hints in function definitions on hold because we aren't convinced it is the right way to fix the underlying issue. We'll share more details soon.

@MichaReiser MichaReiser deleted the parenthesize-long-type-hints branch January 16, 2024 10:02
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.

Formatter: parenthesize_long_type_hints preview style
1 participant