We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code before:
def asdf_asdf_asdf_asdf_asdf() -> my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | None: pass
Black formatted to:
def asdf_asdf_asdf_asdf_asdf() -> ( my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | None, ): pass
The trailing comma is incorrect, see playground.
The text was updated successfully, but these errors were encountered:
Fix psf#3638: Do not add trailing commas to return type annotations u…
0ce244d
…sing PEP 604 unions.
Do not add trailing commas to return type annotations using PEP 604 u…
01b8d3d
…nions (#3735) Fix #3638: Do not add trailing commas to return type annotations using PEP 604 unions.
Successfully merging a pull request may close this issue.
Code before:
Black formatted to:
The trailing comma is incorrect, see playground.
The text was updated successfully, but these errors were encountered: