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

[BUG] Pretty printing can break tuples containing a single item when expanding #445

Closed
willmcgugan opened this issue Nov 26, 2020 · 0 comments · Fixed by #448
Closed

[BUG] Pretty printing can break tuples containing a single item when expanding #445

willmcgugan opened this issue Nov 26, 2020 · 0 comments · Fixed by #448
Assignees
Labels
bug Something isn't working

Comments

@willmcgugan
Copy link
Collaborator

willmcgugan commented Nov 26, 2020

When pretty printing a tuple with one item, the pretty printing omits the comma necessary to make it a tuple.

For instance if you pretty print (1,) with expand_all=True, you get this:

(
    1
)

Which is no longer a tuple. If the tuple is not expanded then the result is (1,) which is correct.

@willmcgugan willmcgugan self-assigned this Nov 26, 2020
@willmcgugan willmcgugan added bug Something isn't working and removed Needs triage labels Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant