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 Spencer Brown
Recipients David E. Franco G., Spencer Brown, gvanrossum
Date 2016-09-07.20:42:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473280943.55.0.794937947995.issue27989@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-07 20:42:23Spencer Brownsetrecipients: + Spencer Brown, gvanrossum, David E. Franco G.
2016-09-07 20:42:23Spencer Brownsetmessageid: <1473280943.55.0.794937947995.issue27989@psf.upfronthosting.co.za>
2016-09-07 20:42:23Spencer Brownlinkissue27989 messages
2016-09-07 20:42:23Spencer Browncreate