[issue44636] It is possible to create a 1-type union type
Serhiy Storchaka
report at bugs.python.org
Thu Jul 15 03:44:41 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Simple example (without indexing):
>>> import typing
>>> typing.Union[int, int]
<class 'int'>
>>> int | int
int
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44636>
_______________________________________
More information about the Python-bugs-list
mailing list