[Python-ideas] Annotations (and static typing)

Yann Kaiser kaiser.yann at gmail.com
Wed Aug 20 21:02:32 CEST 2014


Let's add convenient namespacing to that list:

@annotate('typing', one=str, two=int, three=int)
@annotate('cli', two=int, three='t')
def func(one, two, *, three=5):
    ...

I might add something like this to sigtools.modifiers.annotate and
.specifiers.signature to extract it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140820/a92f44de/attachment.html>


More information about the Python-ideas mailing list