Vivek Vashist <vivekvash...@gmail.com> added the comment:
Thanks Ken. You are right I'm using 3.10.0b4. I just tested it on 3.10.0 and it works fine. >>> import types >>> isinstance(int | str, types.UnionType) True ---------- status: pending -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46122> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com