Message274881
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. |
|
Date |
User |
Action |
Args |
2016-09-07 20:42:23 | Spencer Brown | set | recipients:
+ Spencer Brown, gvanrossum, David E. Franco G. |
2016-09-07 20:42:23 | Spencer Brown | set | messageid: <1473280943.55.0.794937947995.issue27989@psf.upfronthosting.co.za> |
2016-09-07 20:42:23 | Spencer Brown | link | issue27989 messages |
2016-09-07 20:42:23 | Spencer Brown | create | |
|