-
-
Notifications
You must be signed in to change notification settings - Fork 53
Enable pyupgrade #110
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
base: master
Are you sure you want to change the base?
Enable pyupgrade #110
Conversation
bf34294 to
73a6e77
Compare
|
The reason for most of the changes here was that this package supported versions of 3.9 onwards. There are numerous changes that rely on PEP 695 ( The pipe ones should be fine as long as we deprecate |
|
Inheriting from object should be left out, that's for sure |
To clarify, that's the reason for all of the changes. Excluding the trove update commit (I will rebase the branch when #111 is merged), the only changes are ruff config update to enable pyupgrade and fixes applied by pyupgrade. |
|
Wasn't |
|
Change Summary
Enables pyupgrade rule set in ruff config.
https://docs.astral.sh/ruff/rules/#pyupgrade-up
https://github.com/asottile/pyupgrade
Helps to keep the code modern.
Depends on:
PR Checklist