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

Add text_len() methods to more *Prefix enums in ruff_python_ast #16254

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

AlexWaygood
Copy link
Member

Summary

#16183 added a StringLiteralPrefix::text_len() method. This PR adds similar methods to the other *Prefix methods, for a consistent API. This also allows us to remove a little bit of indirection from the StringFlags::opener_len() method.

Test Plan

cargo test

Verified

This commit was signed with the committer’s verified signature.
david-driscoll David Driscoll
@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label Feb 19, 2025
@AlexWaygood AlexWaygood enabled auto-merge (squash) February 19, 2025 14:43
@AlexWaygood AlexWaygood merged commit f50849a into main Feb 19, 2025
20 checks passed
@AlexWaygood AlexWaygood deleted the alex/const-textlen branch February 19, 2025 14:47
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant