Ivan Levkivskyi added the comment: 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]] ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27989> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com