Skip to content

Do not shadow user arguments in generated __new__ by @deprecated #581

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

Merged
merged 3 commits into from
Apr 10, 2025

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Apr 8, 2025

Backport of: python/cpython#132160

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
Backport of: python/cpython#132160
@JelleZijlstra
Copy link
Member

The test fails because on versions where warnings.deprecated exists but not your fix, we use the stdlib version. This can be fixed by adjusting the condition for when we use the stdlib version.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@JelleZijlstra
Copy link
Member

Would you mind adding an entry to CHANGELOG.md? (I'd do it myself but then I'd have to ping somebody else to review.)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@JelleZijlstra JelleZijlstra merged commit 88a0c20 into python:main Apr 10, 2025
22 checks passed
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.

None yet

2 participants