[Python-ideas] Re: Allow using the or operator to denote unions in type annotations

2020-03-14 Thread Noah Peter May
Fair enough , I can't say I have contributed to Mypy nor worked on a significantly large codebase. On Sat, Mar 14, 2020 at 2:12 PM Guido van Rossum wrote: > On Sat, Mar 14, 2020 at 1:03 PM Noah Peter May wrote: > >> Yeah, PEP 585 should definitely get pushed through! That would be super >>

[Python-ideas] Re: Allow using the or operator to denote unions in type annotations

2020-03-14 Thread Guido van Rossum
On Sat, Mar 14, 2020 at 1:03 PM Noah Peter May wrote: > Yeah, PEP 585 should definitely get pushed through! That would be super > useful all around. > > Besides that, I think PEP 563 would mitigate most of the slowdown at > runtime introduced by 604. The only exceptions would be explicit like >

[Python-ideas] Re: Allow using the or operator to denote unions in type annotations

2020-03-14 Thread Noah Peter May
Yeah, PEP 585 should definitely get pushed through! That would be super useful all around. Besides that, I think PEP 563 would mitigate most of the slowdown at runtime introduced by 604. The only exceptions would be explicit like assigning variables to types (int_list = List[int]) or dataclasses