19 Jan
2021
19 Jan
'21
12:05 p.m.
On Mon, 18 Jan 2021 15:54:32 -0800
Larry Hastings
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.