Ken Jin <kenjin4...@gmail.com> added the comment:
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') ---------- stage: patch review -> _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45489> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com