29 Aug
2019
29 Aug
'19
1:34 p.m.
Cool ! My patch of MyPy is allready compatible with this new syntax. Regards Le jeu. 29 août 2019 à 15:11, Inada Naoki <songofacandy@gmail.com> a écrit :
On Thu, Aug 29, 2019 at 10:07 PM Philippe Prados < philippe.prados@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 <songofacandy@gmail.com>