-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handle comment as last leaf item when collapsing brackets #36
Comments
Hi @char101 , thanks for offering a solution! And sorry for the delayed reply -- I've been very busy with other things these past few weeks. I'll make a code change by the end of this week then. |
This seems to be implemented in black now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Having a comment as a last item break bracket collapsing, e.g.
input:
output:
A comment as the last leaf item is practically the same as having an ending comma.
This patch seems to fix it
The token type is
153
. I couldn't find the name for the token intoken.py
.The text was updated successfully, but these errors were encountered: