]> granicus.if.org Git - python/commit
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 27 Feb 2018 01:59:55 +0000 (17:59 -0800)
committerEric V. Smith <ericvsmith@users.noreply.github.com>
Tue, 27 Feb 2018 01:59:55 +0000 (20:59 -0500)
commita93e3dc236279692eaf50b91d358da5983983b14
tree9df702a19eced2701ebbe398289b6d41bdd7fda5
parenta9a8a9814a52b3c92b3680f0b3a356116510ee18
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and vice-versa, (GH-5919) (GH-5920)

This restriction will be relaxed at a future date.
(cherry picked from commit 2fa6b9eae07e2385e2acbf2e40093a21fb3a10c4)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-02-26-20-04-40.bpo-32960.48r0Ml.rst [new file with mode: 0644]