Skip to content

Prefer str.removeprefix() over conditionally replacing with slice#1737

Merged
gaborbernat merged 1 commit intopypa:mainfrom
DimitriPapadopoulos:removeprefix
Mar 18, 2026
Merged

Prefer str.removeprefix() over conditionally replacing with slice#1737
gaborbernat merged 1 commit intopypa:mainfrom
DimitriPapadopoulos:removeprefix

Conversation

@DimitriPapadopoulos
Copy link
Copy Markdown
Contributor

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (pre-commit run --all-files)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in changelog.d/ folder
  • updated/extended the documentation

@gaborbernat gaborbernat merged commit 1889f28 into pypa:main Mar 18, 2026
11 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the removeprefix branch March 18, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants