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 _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/BAUICKNQ225BCCE5WKCA4SM6ERVI56AX/ Code of Conduct: http://python.org/psf/codeofconduct/
