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
3 files changed