]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Apr 2021 13:46:30 +0000 (06:46 -0700)
committerGitHub <noreply@github.com>
Tue, 6 Apr 2021 13:46:30 +0000 (09:46 -0400)
commit8a34a0793bcb830350dac675524310bb285e5e4f
tree2fcd7aac1392b87fecbd0ffedc0e94a99df4b4f1
parentc7ccb0ff61e443633d0c54cb18b5633a8e95b30c
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)

When a dataclass inherits from an empty base, all immutability checks are omitted. This PR fixes this and adds tests for it.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 376ffc6ac491da74920aed1b8e35bc371cb766ac)

Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2021-02-09-07-24-29.bpo-43176.bocNQn.rst [new file with mode: 0644]