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-23.07:25:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642922717.64.0.459569832807.issue44642@roundup.psfhosted.org>
In-reply-to
Content
Looks like it was fixed indeed, `NewType` is now a class. And I cannot reproduce it even on `3.10`:

```
Python 3.10.0 (default, Nov  1 2021, 10:24:06) [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-23 07:25:17sobolevnsetrecipients: + sobolevn, gvanrossum, serhiy.storchaka, kj
2022-01-23 07:25:17sobolevnsetmessageid: <1642922717.64.0.459569832807.issue44642@roundup.psfhosted.org>
2022-01-23 07:25:17sobolevnlinkissue44642 messages
2022-01-23 07:25:17sobolevncreate