On Mon, 18 Jan 2021 15:54:32 -0800 Larry Hastings <la...@hastings.org> wrote: > On 1/18/21 3:42 PM, Inada Naoki wrote: > > Many type hinting use cases don't need type objects in runtime. > > So I think PEP 563 is better for type hinting user experience. > > You mean, in situations where the user doesn't want to import the types, > because of heavyweight imports or circular imports? I didn't think > those were very common.
Probably not very common, but annoying anyway. For example, a library (say PyArrow) may expose a function for importing Pandas data without mandating a Pandas dependency. Note: I don't use type hinting, I'm just responding to this particular aspect (optional / heavy dependencies). Regards Antoine. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/MV4R3BQCDJZNL6SN2CAAN43EBW5Q6UMF/ Code of Conduct: http://python.org/psf/codeofconduct/