On Apr 14, 2020, at 20:53, Christopher Barker <[email protected]> wrote: > >> On Tue, Apr 14, 2020 at 7:46 PM Ricky Teachey <[email protected]> wrote: >> For simple situations you can call super in the __post_init__ method and >> things will work fine: > > But not for the OP's case: he wanted to pass extra parameters in -- and the > dataclass' __init__ won't accept extra arguments.
Can’t you just create InitVar attributes for the extra args you want to pass through in that case?
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/T24XVSZ6JYACCWRVY5TL76SLFZEECXL6/ Code of Conduct: http://python.org/psf/codeofconduct/
