[Python-ideas] Structural type checking for PEP 484

Sven R. Kunze srkunze at mail.de
Thu Sep 17 23:13:48 CEST 2015

On 17.09.2015 03:04, Stephen J. Turnbull wrote:
> Sven R. Kunze writes:
>   > Do you know what makes me sad? If you do that for this function but
>   > don't do it for another what is the guideline then? Python Zen tells us
>   > to have one obvious way to do sth. At least for me, it's not obvious
>   > anymore when to annotate and when not to annote. Just a random guess
>   > depending on the moon phase? :(
> No.  There's a simple rule: if it's obvious to you that type
> annotation is useful, do it.  If it's not obvious you want it, you
> don't, and you don't do it.  You obviously are unlikely to do it for
> some time, if ever.  Me too.

I was talking about specific examples (functions and methods). You were 
talking about the concept as a whole if I am not completely mistaken.

More information about the Python-ideas mailing list