[Python-ideas] Proposal: Use mypy syntax for function annotations
Chris Angelico
rosuav at gmail.com
Mon Aug 25 13:03:48 CEST 2014
On Mon, Aug 25, 2014 at 8:57 PM, Cem Karan <cfkaran2 at gmail.com> wrote:
> from type_checker import TYPE_CHECKER
>
> def foo(a: {TYPE_CHECKER: int}):
> pass
I still don't think this offers much benefit over
def foo(a: int):
pass
It's a lot wordier and the flexibility will almost never be needed. So
is that multiplexing really worth it?
ChrisA
More information about the Python-ideas
mailing list