Long string in return annotation does not get split if there's parameters
Author: jakkdlCreated Oct 6, 2023Updated Sep 13, 2026
LabelsT: bugF: linetoolong
Describe the bug This was first reported in #2699, and thought resolved in #2990, except that only solved the specific case of the function having no parameters.
To Reproduce
Run the test return_annotation_brackets_string:
The second function should be formatted exactly the same as the first one.
Source: psf/black