Split type hints with trailing comma
b-chu opened this issue · comments
Brian commented
Type hints aren't being split on separate lines even though arguments are. What's the correct setting to get consistent formatting?
Incorrect
argument: Optional[Union[SomeType,
Tuple[SomeType, int],
Sequence[Union[SomeType, Tuple[SomeType, int]]],
]] = None,
Correct
argument: Optional[Union[
SomeType,
Tuple[SomeType, int],
Sequence[Union[SomeType, Tuple[SomeType, int]]],
]] = None,