◐ Shell
clean mode source ↗

Message 334397 - Python tracker

> Since Undef is not defined, I should get an exception when calling get_type_hints


One of the motives of PEP-563 is to make it easier to use forward references. I'm not sure, but it seems to me that given that, we should not get an exception. So I think the only issue here is that the ForwardReference class is not documented, and should be.

But I admit I'm not confident about my understanding of PEP-563 so I could be wrong.