Skip to content

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

Draft
JelleZijlstra wants to merge 3 commits into
python:mainfrom
JelleZijlstra:lazyanno
Draft

gh-124157: Lazily create __annotate__ functions for function annotations#128362
JelleZijlstra wants to merge 3 commits into
python:mainfrom
JelleZijlstra:lazyanno

Conversation

@JelleZijlstra

@JelleZijlstraJelleZijlstra commented Dec 30, 2024

Copy link
Copy Markdown
Member

@JelleZijlstra

Copy link
Copy Markdown
MemberAuthor

@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.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label Apr 20, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staleStale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@JelleZijlstra