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

Split type hints with trailing comma #1216

Open
b-chu opened this issue Mar 21, 2024 · 0 comments
Open

Split type hints with trailing comma #1216

b-chu opened this issue Mar 21, 2024 · 0 comments

Comments

@b-chu
Copy link

b-chu commented Mar 21, 2024

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,
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

No branches or pull requests

1 participant