On Apr 14, 2020, at 20:53, Christopher Barker <python...@gmail.com> wrote:
> 
>> On Tue, Apr 14, 2020 at 7:46 PM Ricky Teachey <ri...@teachey.org> 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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/T24XVSZ6JYACCWRVY5TL76SLFZEECXL6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to