Message 403552 - Python tracker

Message403552

Author GBeauregard
Recipients GBeauregard, eric.smith
Date 2021-10-09.20:00:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633809616.99.0.710729506075.issue45384@roundup.psfhosted.org>
In-reply-to
Content
Hi Eric,

I've been shopping this idea around on the mailing list and haven't received any objections. Do you have any concerns? Can we handle Final with the same checks as ClassVar?

Regarding potentially merging a change, I'm not sure where this falls between a bug fix and a feature. On one hand the PEP 591 instruction to typecheckers on how to treat Final is relatively absolute and the dataclasses behavior could be considered a buggy interaction with it. On the other hand this is sorta a new behavior. Do you have any opinions? Should I not worry about it when working on patch and let core devs figure out if it would need backported?

I've read through the dataclasses code and I think I can implement this myself and submit a PR, but I may need a bit of a heavy handed code review since I've only recently started getting serious with Python.

Thanks for your time and work on dataclassess.
History
Date User Action Args
2021-10-09 20:00:17GBeauregardsetrecipients: + GBeauregard, eric.smith
2021-10-09 20:00:16GBeauregardsetmessageid: <1633809616.99.0.710729506075.issue45384@roundup.psfhosted.org>
2021-10-09 20:00:16GBeauregardlinkissue45384 messages
2021-10-09 20:00:16GBeauregardcreate