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 AlexWaygood
Recipients AlexWaygood, TNThung, gvanrossum, kj
Date 2021-11-21.15:26:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637508417.13.0.97356992294.issue45857@roundup.psfhosted.org>
In-reply-to
Content
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'
```
History
Date User Action Args
2021-11-21 15:26:57AlexWaygoodsetrecipients: + AlexWaygood, gvanrossum, kj, TNThung
2021-11-21 15:26:57AlexWaygoodsetmessageid: <1637508417.13.0.97356992294.issue45857@roundup.psfhosted.org>
2021-11-21 15:26:57AlexWaygoodlinkissue45857 messages
2021-11-21 15:26:57AlexWaygoodcreate