Cool !

My patch of MyPy is allready compatible with this new syntax.

Regards


Le jeu. 29 août 2019 à 15:11, Inada Naoki <[email protected]> a écrit :

>
> On Thu, Aug 29, 2019 at 10:07 PM Philippe Prados <
> [email protected]> wrote:
>
>> ... and, runtime type checking (like
>> https://github.com/agronholm/typeguard) must have a synthetised Union[]
>> in __annotations__.
>>
>>
>>
> Runtime type checking tools can parse "str | int" too.
> No need to implement runtime behavior for `str | int`.
>
> Regards,
>
> --
> Inada Naoki  <[email protected]>
>
_______________________________________________
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/AL3W3SCG27CWUHC6DVQBZJENZQX2BWW5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to