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 kj
Recipients bobbeyreese, corona10, gvanrossum, kj
Date 2021-10-16.14:48:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634395713.06.0.993048506775.issue45489@roundup.psfhosted.org>
In-reply-to
Content
ForwardRef is for internal use, and writing ForwardRef('fdsa') is discouraged, as the docs say:

   This class should not be instantiated by a user.

However, I don't see any cons from adding union support, so let's do it!

Note that a workaround exists for OP's example. But it may not be sufficient for complex runtime libraries:

ForwardRef('asdf | fdsa')
History
Date User Action Args
2021-10-16 14:48:33kjsetrecipients: + kj, gvanrossum, corona10, bobbeyreese
2021-10-16 14:48:33kjsetmessageid: <1634395713.06.0.993048506775.issue45489@roundup.psfhosted.org>
2021-10-16 14:48:33kjlinkissue45489 messages
2021-10-16 14:48:33kjcreate