]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-148947: dataclasses: fix error on empty __class__ cell (GH-148948) (#148995)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 25 Apr 2026 15:57:33 +0000 (17:57 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2026 15:57:33 +0000 (15:57 +0000)
commit15e2b64cd8bfaf0d5127584a88bb6b929f8dcc19
tree22ea45174d6963502aefe124eb58aa3b9741fd46
parent8acb98a1c269cf34a421faed1ee3e2c78e98e2bd
[3.14] gh-148947: dataclasses: fix error on empty __class__ cell  (GH-148948) (#148995)

gh-148947: dataclasses: fix error on empty __class__ cell  (GH-148948)

Also add a test demonstrating the need for the existing "is oldcls" check.
(cherry picked from commit 6d7bbee1d5714a345dca5a7e4089de3c2fc0fb59)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Lib/dataclasses.py
Lib/test/test_dataclasses/__init__.py
Misc/NEWS.d/next/Library/2026-04-23-21-47-49.gh-issue-148947.W4V2lG.rst [new file with mode: 0644]