[Python-ideas] PEP 484 (Type Hints) -- first draft round
Stefan Behnel
stefan_ml at behnel.de
Fri Jan 16 20:38:50 CET 2015
Guido van Rossum schrieb am 16.01.2015 um 18:17:
> After a long editing process we've got PEP 484
> <https://www.python.org/dev/peps/pep-0484/> (Type Hints) ready for your
> review.
I can't see it mention interoperability with other usages of function
annotations. I think the idea was that in this case, the type hints must be
explicitly declared as such, e.g.
def func(x: {'type': str, 'wobble': 'off',
'ctype': 'std::string[utf8]'}) ->
{'type': str, 'wobble': 'sure'}:
return x + 'huhu'
Stefan
More information about the Python-ideas
mailing list