Message398128
There are differences between typing.Union and types.Union:
* typing.Union is indexable, types.Union is not.
* types.Union is a class, typing.Union is not.
types.Union corresponds to typing._UnionGenericAlias, not typing.Union. It is confusing that typing.Union and types.Union have the same name. Note also that most classes in the types module have the "Type" suffix: FunctionType, MethodType, ModuleType, etc. I think that it would be better to rename types.Union to types.UnionType. |
|
Date |
User |
Action |
Args |
2021-07-24 09:24:20 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, pablogsal, kj |
2021-07-24 09:24:20 | serhiy.storchaka | set | messageid: <1627118660.44.0.542723113695.issue44732@roundup.psfhosted.org> |
2021-07-24 09:24:20 | serhiy.storchaka | link | issue44732 messages |
2021-07-24 09:24:20 | serhiy.storchaka | create | |
|