Skip to content
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

gh-124157: Lazily create __annotate__ functions for function annotations #128362

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Dec 30, 2024

@JelleZijlstra
Copy link
Member Author

@larryhastings I recall you were working on a version of this, but I got impatient and spent a bit of time on it this morning. This only covers annotations on functions, partly because I'm lazy and partly because those are by far the most common anyway. However, I ran some benchmarks and it's not clear to me this makes much of a dent on memory usage anyway; function objects aren't that big.

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

Successfully merging this pull request may close these issues.

1 participant