On Mon, Sep 11, 2017 at 10:16 AM, Ryan Gonzalez <rym...@gmail.com> wrote:
> One thing I want to point out: there are a lot of really useful Python > libraries that have come to rely on annotations being objects, ranging > from plac to fbuild to many others. I could understand something that > delays the evaluation of annotations until they are accessed, but this > seems really extreme. > This is a serious concern and we need to give it some thought. The current thinking is that those libraries can still get those objects by simply applying eval() to the annotations (or typing.get_type_hints()). And they may already have to support that in order to support PEP 484's forward references. Though perhaps there's a reason why such libraries currently don't need to handle forward refs? -- --Guido van Rossum (python.org/~guido)
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/