Skip to content

ref(mypy): Use removeprefix/removesuffix in make_module_ignores#107956

Merged
mjq merged 1 commit intomasterfrom
mjq/20260210/todo-fix
Feb 10, 2026
Merged

ref(mypy): Use removeprefix/removesuffix in make_module_ignores#107956
mjq merged 1 commit intomasterfrom
mjq/20260210/todo-fix

Conversation

@mjq
Copy link
Member

@mjq mjq commented Feb 10, 2026

Replaces manual string slicing with Python 3.9+ removeprefix() and removesuffix() methods, removing the associated TODO comment. Should be safe since we're now using Python 3.13.

Replaces manual slice notation with Python 3.9+ string methods for
cleaner, more readable code.

Co-authored-by: Claude Code <claude-code@anthropic.com>
@mjq mjq requested a review from a team as a code owner February 10, 2026 18:50
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 10, 2026
@mjq mjq merged commit 4ccff78 into master Feb 10, 2026
97 checks passed
@mjq mjq deleted the mjq/20260210/todo-fix branch February 10, 2026 19:15
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
)

Replaces manual string slicing with Python 3.9+ `removeprefix()` and
`removesuffix()` methods, removing the associated TODO comment. Should
be safe since we're now using Python 3.13.

Co-authored-by: Claude Code <claude-code@anthropic.com>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants