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 barry, eric.smith, gvanrossum, ned.deily
Date 2018-05-16.20:09:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526501361.94.0.682650639539.issue33539@psf.upfronthosting.co.za>
In-reply-to
Content
I think the concern is:

from dataclasses import *

class B:
    def __init__(self, a, b, c):
        # do something with a, b, c, and maybe use fields(self) to figure out we have a "i" field
        self.i = a + b + c

@dataclass(init=False)
class C(B)
    i: int

c = C(1, 2, 3)

It doesn't seem particularly likely, but do we want to prevent it?
History
Date User Action Args
2018-05-16 20:09:21eric.smithsetrecipients: + eric.smith, gvanrossum, barry, ned.deily
2018-05-16 20:09:21eric.smithsetmessageid: <1526501361.94.0.682650639539.issue33539@psf.upfronthosting.co.za>
2018-05-16 20:09:21eric.smithlinkissue33539 messages
2018-05-16 20:09:21eric.smithcreate