Added the __or__
operator to TypeObject
, NoneObject
and GenericAlias
. Also had to import some of the changes lib-python/3/typing.py
, and unfortunately had to diverge a little in the _UnionGenericAlias.__repr__
implementation to avoid duplicating the Union
implementation as CPython did in C.
--HG-- branch : py3.9-type-or