I think we are saying the same thing. I don't think this would require another parameter if type checkers are capable of inferring the type from the parameter to the function to be called on init.
On Wed, 2022-06-29 at 21:26 +0000, Steve Jorgensen wrote: > Paul Bryan wrote: > > Could the type hint for the __init__ parameter be inferred from the > > (proposed) init_fn's own parameter type hint itself? > > On Tue, 2022-06-28 at 16:39 +0000, Steve Jorgensen wrote: > > I think I was already suggesting that possibility "an optional > argument to `InitFn` or maybe that can be derived from the signature > of the function that `InitFn` refers to." Are we saying the same > thing? > _______________________________________________ > 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/W6SYLYIQLORAJJCVXYPZFLV25XZG43DH/ > Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________ 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/2AY76OOTBGB7YIEA5FHMTMLFUDF72L5F/ Code of Conduct: http://python.org/psf/codeofconduct/
