Message406724
Reproduced on 3.11. The error occurs if a type is on the left-hand-side of the operand, as well as if a type is on the right-hand-side:
```
>>> int | "str"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'str'
>>> "str" | int
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'str' and 'type'
``` |
|
Date |
User |
Action |
Args |
2021-11-21 15:26:57 | AlexWaygood | set | recipients:
+ AlexWaygood, gvanrossum, kj, TNThung |
2021-11-21 15:26:57 | AlexWaygood | set | messageid: <1637508417.13.0.97356992294.issue45857@roundup.psfhosted.org> |
2021-11-21 15:26:57 | AlexWaygood | link | issue45857 messages |
2021-11-21 15:26:57 | AlexWaygood | create | |
|