Ivan Levkivskyi added the comment: Here is the patch according to the discussion (modifying inspect).
I didn't change the rendering of docs for classes (neither stripped 'typing.' nor changed __bases__ to __orig_bases__). First, collections.abc.X are widely used as base classes, so that plain Mapping could be confused with collections.abc.Mapping. Second, seeing the actual runtime type-erased bases suggests that one should use isinstance() and issubclass() with those (not with, e.g., Mapping[int, str], the latter will raise TypeError). ---------- keywords: +patch nosy: +yselivanov Added file: http://bugs.python.org/file45188/typing-pydoc.diff _______________________________________ 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