This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, TNThung, eric.smith, gvanrossum, kj
Date 2021-11-21.17:08:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637514482.45.0.134209278204.issue45857@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-11-21 17:08:02AlexWaygoodsetrecipients: + AlexWaygood, gvanrossum, eric.smith, kj, TNThung
2021-11-21 17:08:02AlexWaygoodsetmessageid: <1637514482.45.0.134209278204.issue45857@roundup.psfhosted.org>
2021-11-21 17:08:02AlexWaygoodlinkissue45857 messages
2021-11-21 17:08:02AlexWaygoodcreate