]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Apr 2025 17:00:54 +0000 (19:00 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Apr 2025 17:00:54 +0000 (17:00 +0000)
commit83070aa1089e8e8eaa72092da68d2ecd96d23536
treeaf61a11e368aa03a4cbfeccea5cf7c7da813f575
parentf7ab4ebb2cbff20b5f20c3547a3a4d1f69fe6cf9
[3.13] gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (GH-132160) (#132163)

gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (GH-132160)
(cherry picked from commit 7bb1e1a23634bae81bf76fdb34e9f9f7e59b3793)

Co-authored-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
Lib/test/test_warnings/__init__.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2025-04-06-16-12-49.gh-issue-132159.WvBfBm.rst [new file with mode: 0644]