Message411351
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'
``` |
|
Date |
User |
Action |
Args |
2022-01-23 07:25:17 | sobolevn | set | recipients:
+ sobolevn, gvanrossum, serhiy.storchaka, kj |
2022-01-23 07:25:17 | sobolevn | set | messageid: <1642922717.64.0.459569832807.issue44642@roundup.psfhosted.org> |
2022-01-23 07:25:17 | sobolevn | link | issue44642 messages |
2022-01-23 07:25:17 | sobolevn | create | |
|