This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients abrosimov.a.a, eric.smith
Date 2020-12-25.17:23:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608917020.24.0.703655344599.issue42742@roundup.psfhosted.org>
In-reply-to
Content
You'd need to return a different class in order to add the collections.abc.Mapping base class. Currently, dataclasses by design always return the same class that's passed in.

I'd suggest adding this as a stand-alone decorator.
History
Date User Action Args
2020-12-25 17:23:40eric.smithsetrecipients: + eric.smith, abrosimov.a.a
2020-12-25 17:23:40eric.smithsetmessageid: <1608917020.24.0.703655344599.issue42742@roundup.psfhosted.org>
2020-12-25 17:23:40eric.smithlinkissue42742 messages
2020-12-25 17:23:40eric.smithcreate