This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sobolevn
Recipients gvanrossum, kj, serhiy.storchaka, sobolevn
Date 2022-01-22.22:50:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642891833.35.0.680861842912.issue44642@roundup.psfhosted.org>
In-reply-to
Content
It does not happen anymore on `main` (3.11):

```
Python 3.11.0a4+ (heads/main-dirty:ef3ef6fa43, Jan 20 2022, 20:48:25) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import typing

>>> int | typing.cast
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'function'

>>> int | typing.get_type_hints
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'function' 
```
History
Date User Action Args
2022-01-22 22:50:33sobolevnsetrecipients: + sobolevn, gvanrossum, serhiy.storchaka, kj
2022-01-22 22:50:33sobolevnsetmessageid: <1642891833.35.0.680861842912.issue44642@roundup.psfhosted.org>
2022-01-22 22:50:33sobolevnlinkissue44642 messages
2022-01-22 22:50:33sobolevncreate