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 Ricyteach
Recipients Ricyteach, eric.smith
Date 2018-05-10.02:27:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The init method that comes up for int, str, float, etc is just the object init:

assert int.__init__ is object.__init__

Probably the thing to do is grab any init methods that aren't the object.__init__ while stripping out the dataclass-created init methods? Maybe something like:

import warnings

if cls.__dataclass_params__.init:
    for pcls in cls.mro():
        if pcls.__init__ is not object.__init__:
                d_params = getattr(pcls, "__dataclass_params__")
            except AttributeError:
                warnings.warn('Found a not called init')
                if not d_params.init:
                    warnings.warn('Found a custom dataclass init')
Date User Action Args
2018-05-10 02:27:36Ricyteachsetrecipients: + Ricyteach, eric.smith
2018-05-10 02:27:36Ricyteachsetmessageid: <>
2018-05-10 02:27:36Ricyteachlinkissue33452 messages
2018-05-10 02:27:35Ricyteachcreate