Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

> 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.

----------
nosy: +steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to