CPython's Union Type Implementation in C (X | Y)
Python’s X | Y syntax (and typing.Union[X, Y]) produces an object of type types.UnionType. Unlike Ellipsis or None, a union is a real allocated object: it owns references to its …
Python’s X | Y syntax (and typing.Union[X, Y]) produces an object of type types.UnionType. Unlike Ellipsis or None, a union is a real allocated object: it owns references to its …