Skip to content

feat(specifiers): add __replace__ to Specifier and SpecifierSet - #1457

Open
notatallshaw wants to merge 2 commits into
pypa:mainfrom
notatallshaw:feat/specifier-replace-20261019
Open

notatallshaw wants to merge 2 commits into
pypa:mainfrom
notatallshaw:feat/specifier-replace-20261019

Conversation

@notatallshaw

Copy link
Copy Markdown
Member

This API provides a direct alternative to Specifier and SpecifierSet mutable prerelease, which I would like to deprecate.

However, upon down a survey of downstream projects, I found many that currently use the mutability of packaging's specifiers. So I will not deprecate until at least the next release after __replace__ is added. I will also open PRs on those projects and add some of them to packaging's downstream tests.

This branch has not been deployed

No deployments
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.

1 participant