Message404037
Not positive this is a bug, but it seems like ForwardRef should support the pipe (|) operator for indicating Unions in Python 3.10:
Python 3.10.0 (default, Oct 4 2021, 22:09:55) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from typing import ForwardRef
>>> ForwardRef('asdf') | ForwardRef('fdsa')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'ForwardRef' and 'ForwardRef'
>>> int | str
int | str
>>> |
|
Date |
User |
Action |
Args |
2021-10-15 16:37:31 | bobbeyreese | set | recipients:
+ bobbeyreese |
2021-10-15 16:37:31 | bobbeyreese | set | messageid: <1634315851.69.0.0714715298786.issue45489@roundup.psfhosted.org> |
2021-10-15 16:37:31 | bobbeyreese | link | issue45489 messages |
2021-10-15 16:37:31 | bobbeyreese | create | |
|