[issue31939] Support return annotation in signature for Argument Clinic
STINNER Victor
report at bugs.python.org
Mon Nov 6 11:12:43 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
I'm sorry, I'm confused between docstrings and annotations.
My first goal is to not loose the return type from the docstring when the select module is converted to Argument Clinic, at least for the simplest return types. Complex return types can be documented manually in the body of a docstring.
Return *annotation* would be nice to have, but it seems to be opposed to the current policy. I started a discussion on python-dev to ask if we should modify this policy :-)
"[Python-Dev] Allow annotations using basic types in the stdlib?"
https://mail.python.org/pipermail/python-dev/2017-November/150233.html
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31939>
_______________________________________
More information about the Python-bugs-list
mailing list