[issue27989] incomplete signature with help function using typing

Spencer Brown report at bugs.python.org
Wed Sep 7 16:42:23 EDT 2016


Spencer Brown added the comment:

It might be better to just change the if statement to 'if isinstance(annotation, type) and type(annotation).__repr__ is type.__repr__:'. That would make it fallback for any metaclass which overrides repr, instead of special-casing typing. That also ensures 'typing.' is still in the name, since these aren't builtins.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27989>
_______________________________________


More information about the Python-bugs-list mailing list