
Aug. 29, 2019
9:07 p.m.
On Thu, Aug 29, 2019 at 02:25:56PM +0200, Philippe Prados wrote:
# Operator for Union assert( int | str == Union[int,str])
[Aside: assert is not a function and you don't need the parentheses.] This is not a new proposal. If I recall correctly, it was proposed way back at the very beginning of the type-hinting discussion, and there has been at least one closed feature request for it: https://github.com/python/typing/issues/387 -- Steven