Alex Waygood <alex.wayg...@gmail.com> added the comment:

Arguably, either the implementation should be altered to support forward 
references, or the documentation at 
https://docs.python.org/3/library/stdtypes.html#union-type should be altered to 
make clear that, when type-hinting a union that includes a forward reference, 
the entire expression should be given as a string, as Eric suggests.

----------

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

Reply via email to