On 1/15/21 3:29 PM, Greg Ewing wrote:
I think it's simpler and nicer for the user to preserve the existing interface, so I'm sticking with that approach. If you feel strongly about this, I encourage you to write your own competing PEP.On 16/01/21 7:56 am, Larry Hastings wrote:As mentioned previously in this thread, typing.get_type_hints() is opinionated in ways that users of annotations may not want.This brings us back to my idea of introducing a new annotations() function to hide the details. It wouldn't be the same as get_type_hints(), since it wouldn't make any assumptions about what the annotations mean.
//arry/
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/ZRFIAWZ772NOWAY4VE4WBNFPHNLIMX5V/ Code of Conduct: http://python.org/psf/codeofconduct/