Uh oh!
There was an error while loading. Please reload this page.
Enable pyupgrade - #110
Conversation
bf34294 to
73a6e77Comparetharropoulos
commented
Nov 24, 2025
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 |
tharropoulos
commented
Nov 24, 2025
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. |
tharropoulos
commented
Nov 24, 2025
Wasn't |
ulgens
commented
Nov 24, 2025
|
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