Skip to content

Investigate: Can the namer assign lazy annotations on symbol creation? #10459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lrytz opened this issue Aug 9, 2017 · 0 comments
Open

Investigate: Can the namer assign lazy annotations on symbol creation? #10459

lrytz opened this issue Aug 9, 2017 · 0 comments

Comments

@lrytz
Copy link
Member

lrytz commented Aug 9, 2017

Currently, annotations are added to symbols in the type completer. When accessing sym.annotations in the compiler, the symbol is not initialized (that only happens when accessing annotations through reflection), so one might see the empty list.

We already have lazy annotations (and we use them), so could we add annotations when the symbol is created, just like the lazy type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant