-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[pyupgrade] Stabilize private-type-parameter (UP049) #18515
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
Conversation
These with the funny descriptions are being generated by claude with a lot of hand-holding. I'm double-checking that the tests are in the right place and that the docs look okay manually, but not necessarily before opening the PRs. |
|
lol Claude, I don't think you did... |
I actually do have a Makefile and told it to run |
oh whoops! sorry, Claude - my mistake! |
Looks like the ecosystem check is all unrelated (claude had the base branch wrong initially again). The docs and tests look good to me. |
9252447
to
829acf4
Compare
650247d
to
4ea8d76
Compare
## Summary Stabilizes the UP049 rule (private-type-parameter) by moving it from Preview to Stable. UP049 detects and fixes the use of private type parameters (those with leading underscores) in PEP 695 generic classes and functions. ## Test plan - Verified that UP049 tests pass: `crates/ruff_linter/src/rules/pyupgrade/mod.rs` - Ran full test suite with `make test` - Confirmed that no test migration was needed as UP049 was already in the main `rules` test function ## Rule documentation https://docs.astral.sh/ruff/rules/private-type-parameter/
## Summary Stabilizes the UP049 rule (private-type-parameter) by moving it from Preview to Stable. UP049 detects and fixes the use of private type parameters (those with leading underscores) in PEP 695 generic classes and functions. ## Test plan - Verified that UP049 tests pass: `crates/ruff_linter/src/rules/pyupgrade/mod.rs` - Ran full test suite with `make test` - Confirmed that no test migration was needed as UP049 was already in the main `rules` test function ## Rule documentation https://docs.astral.sh/ruff/rules/private-type-parameter/
## Summary Stabilizes the UP049 rule (private-type-parameter) by moving it from Preview to Stable. UP049 detects and fixes the use of private type parameters (those with leading underscores) in PEP 695 generic classes and functions. ## Test plan - Verified that UP049 tests pass: `crates/ruff_linter/src/rules/pyupgrade/mod.rs` - Ran full test suite with `make test` - Confirmed that no test migration was needed as UP049 was already in the main `rules` test function ## Rule documentation https://docs.astral.sh/ruff/rules/private-type-parameter/
## Summary Stabilizes the UP049 rule (private-type-parameter) by moving it from Preview to Stable. UP049 detects and fixes the use of private type parameters (those with leading underscores) in PEP 695 generic classes and functions. ## Test plan - Verified that UP049 tests pass: `crates/ruff_linter/src/rules/pyupgrade/mod.rs` - Ran full test suite with `make test` - Confirmed that no test migration was needed as UP049 was already in the main `rules` test function ## Rule documentation https://docs.astral.sh/ruff/rules/private-type-parameter/
Summary
Stabilizes the UP049 rule (private-type-parameter) by moving it from Preview to Stable.
UP049 detects and fixes the use of private type parameters (those with leading underscores) in PEP 695 generic classes and functions.
Test plan
crates/ruff_linter/src/rules/pyupgrade/mod.rs
make test
rules
test functionRule documentation
https://docs.astral.sh/ruff/rules/private-type-parameter/