{"comment":{"url":"https://api.github.com/repos/python/peps/comments/24223953","html_url":"https://github.com/python/peps/commit/454c88950bca978ddff30144c66f2e420f51f96e#commitcomment-24223953","id":24223953,"user":{"login":"ambv","id":55281,"avatar_url":"https://avatars1.githubusercontent.com/u/55281?v=4","gravatar_id":"","url":"https://api.github.com/users/ambv","html_url":"https://github.com/ambv","followers_url":"https://api.github.com/users/ambv/followers","following_url":"https://api.github.com/users/ambv/following{/other_user}","gists_url":"https://api.github.com/users/ambv/gists{/gist_id}","starred_url":"https://api.github.com/users/ambv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambv/subscriptions","organizations_url":"https://api.github.com/users/ambv/orgs","repos_url":"https://api.github.com/users/ambv/repos","events_url":"https://api.github.com/users/ambv/events{/privacy}","received_events_url":"https://api.github.com/users/ambv/received_events","type":"User","site_admin":false},"position":143,"line":143,"path":"pep-0563.rst","commit_id":"454c88950bca978ddff30144c66f2e420f51f96e","created_at":"2017-09-11T16:04:01Z","updated_at":"2017-09-11T16:04:01Z","author_association":"CONTRIBUTOR","body":"@gvanrossum feels we could still support this if you pass the class `__dict__` as `localns` to `get_type_hints()` and this use case is important.\r\n\r\nIf we do that though, this needs endorsing relative names vs. absolute names in the rest of the document (the \"Backwards Compatibility\" discussion about nested classes). This complicates `eval()` usage enough that I think we will have to provide a default implementation of `get_class_globals()` (in \"Rejected Ideas\") somewhere in the stdlib so that people don't have to (badly) reimplement it.\r\n\r\nThis is what I thought about doing initially but ultimately got discouraged since it still doesn't solve all possible issues and the edge cases are harder to explain in this scenario.\r\n\r\nSo, I'm not sure. If you have a suggestion where `get_class_globals()` should go, that'd be useful, too. Maybe make a typing-agnostic `get_type_hints()` variant instead and call it `eval_annotations()` and put it in `functools`?"}}
{"actor":{"display_login":"ambv"}}