]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43176: Fix processing of empty dataclasses (GH-24484)
authorIurii Kemaev <6885137+hbq1@users.noreply.github.com>
Tue, 6 Apr 2021 05:14:01 +0000 (06:14 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Apr 2021 05:14:01 +0000 (22:14 -0700)
commit376ffc6ac491da74920aed1b8e35bc371cb766ac
tree9b0561f3aa54ba7a825ebabc107afe5a73aec32a
parent4663e5f39e9f872dcd69545f293e832d5855d084
bpo-43176: Fix processing of empty dataclasses (GH-24484)

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
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]