This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author levkivskyi
Recipients David E. Franco G., Spencer Brown, gvanrossum, levkivskyi, yselivanov
Date 2016-10-22.14:41:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477147293.13.0.226073010614.issue27989@psf.upfronthosting.co.za>
In-reply-to
Content
For function annotations I did as originally proposed. In my previous comment I was talking about documentation for classes. For example:

class C(Generic[T], Mapping[int, str]): ...
pydoc.render_doc(C)

will show "class C(typing.Mapping)".

while for function annotations typing is indeed much more common so that pydoc.render_doc(foo) will show

foo(data: List[Any]) -> Iterator[Tuple[int, Any]]
History
Date User Action Args
2016-10-22 14:41:33levkivskyisetrecipients: + levkivskyi, gvanrossum, yselivanov, Spencer Brown, David E. Franco G.
2016-10-22 14:41:33levkivskyisetmessageid: <1477147293.13.0.226073010614.issue27989@psf.upfronthosting.co.za>
2016-10-22 14:41:33levkivskyilinkissue27989 messages
2016-10-22 14:41:33levkivskyicreate