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

Reorder Union/Literal subscripts to put None last #38

Merged
merged 4 commits into from
May 3, 2022
Merged

Reorder Union/Literal subscripts to put None last #38

merged 4 commits into from
May 3, 2022

Conversation

jacklee1792
Copy link
Contributor

Addresses the third task (Reorder Union and Literal contents so that None is last) in #22

Copy link
Owner

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for your contribution! One comment below; then I'll merge - I'm already looking forward to enforcing this at work 😉

Comment on lines 13 to 17
x: Union[
int,
str,
None,
] = 3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of how this splits out over multiple lines - can you make sure that the last subscript_slice does not have a comma? That way Black will keep it on one line, at least if it fits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I thought that this was something that Black just did by itself. I fixed this in the latest commit.

Copy link
Owner

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Zac-HD Zac-HD merged commit e094a95 into Zac-HD:master May 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants