Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Codebase modernisation #464

Merged
merged 5 commits into from
Oct 29, 2021
Merged

Codebase modernisation #464

merged 5 commits into from
Oct 29, 2021

Conversation

pradyunsg
Copy link
Member

This should update the codebase to use modern Python 3 features.

Closes #462 by removing the offending code. :)

This should update the codebase to use modern Python 3 features.
This is no longer necessary, since Python 2 support has been dropped.
@henryiii
Copy link
Contributor

I would recommend trying pyupgrade with 3.6 set on the codebase, it's quite nice for this sort of thing. I usually add it to pre-commit.

@henryiii
Copy link
Contributor

I've even done this before: #414

@pradyunsg
Copy link
Member Author

If you look at the branch name, you'll notice a small detail. :P

Please feel free to update that PR -- I didn't want to step-on-the-toes of that one, which is why I've not added pyupgrade to pre-commit here. :)

@pradyunsg pradyunsg enabled auto-merge (squash) October 29, 2021 13:12
@pradyunsg pradyunsg merged commit 3dd3287 into pypa:main Oct 29, 2021
@henryiii
Copy link
Contributor

🤣

@pradyunsg pradyunsg deleted the pyupgrade branch October 29, 2021 14:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mismatched comparison operations for Specifiers
4 participants