Great point, Serhiy.
I agree it would be very confusing to have types.Union and typing.Union.
types.UnionType, types.TypeUnionType, types.UnionTypeType all are much
better IMHO.
Cheers,
Luciano
On Sun, Jul 25, 2021 at 8:25 AM Serhiy Storchaka wrote:
>
> In 3.10 the union type (the type
I don't think that's how we name things. (Though it's a great tongue
twister. :-)
On Mon, Jul 26, 2021 at 1:33 AM Nick Coghlan wrote:
>
>
> On Sun, 25 Jul 2021, 9:26 pm Serhiy Storchaka,
> wrote:
>
>> In 3.10 the union type (the type of the result of the | operator for
>> types) was added
On Sun, 25 Jul 2021, 9:26 pm Serhiy Storchaka, wrote:
> In 3.10 the union type (the type of the result of the | operator for
> types) was added (https://www.python.org/dev/peps/pep-0604/). It is
> exposed as types.Union. There are differences between typing.Union and
> types.Union:
>
> *