Cool !

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

Regards


Le jeu. 29 août 2019 à 15:11, Inada Naoki <songofaca...@gmail.com> a écrit :

>
> On Thu, Aug 29, 2019 at 10:07 PM Philippe Prados <
> philippe.pra...@gmail.com> 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  <songofaca...@gmail.com>
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/AL3W3SCG27CWUHC6DVQBZJENZQX2BWW5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to