]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148947: dataclasses: fix error on empty __class__ cell (#148948)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sat, 25 Apr 2026 15:31:22 +0000 (08:31 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2026 15:31:22 +0000 (08:31 -0700)
commit6d7bbee1d5714a345dca5a7e4089de3c2fc0fb59
treeca13c2627b68b25d14d99728d7bd9c462ab42eb1
parent5ea3ae7c97f06cebcbbe81b142ee4a2b23d980e9
gh-148947: dataclasses: fix error on empty __class__ cell  (#148948)

Also add a test demonstrating the need for the existing "is oldcls" check.

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]