[Python-ideas] PEP 484 (Type Hints) -- first draft round

Todd toddrjen at gmail.com
Mon Jan 19 09:59:58 CET 2015


On Jan 16, 2015 6:18 PM, "Guido van Rossum" <guido at python.org> wrote:
>
> <snip>

I apologize if I missed this, but is there any support for duck-type
hinting, that is somehow defining a type hint by what attributes or methods
it has rather than by what it is a subclass of?  Or is this something that
is being intentionally avoided?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150119/da58b906/attachment.html>


More information about the Python-ideas mailing list