Skip to content

Build GenericCallables when we can't evaluate a method's params#90

Merged
msullivan merged 1 commit intomainfrom
generic-callable
Feb 10, 2026
Merged

Build GenericCallables when we can't evaluate a method's params#90
msullivan merged 1 commit intomainfrom
generic-callable

Conversation

@msullivan
Copy link
Collaborator

The lambda we stick into the GenericCallable will actually go evaluate
the type annotations, then produce a Callable.

@msullivan msullivan requested a review from dnwpark February 7, 2026 03:10
@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
python-typemap Ready Ready Preview, Comment Feb 10, 2026 2:51am

sig = inspect.signature(root)
# XXX: __type_params__!!!

def _function_type_from_sig(sig, func, *, receiver_type):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could maybe replace func with func_type

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not, though; it's the actual function?

Oh, or did you mean pass in type(func) instead?

Base automatically changed from update-class to main February 10, 2026 02:49
The lambda we stick into the GenericCallable will actually go evaluate
the type annotations, then produce a Callable.
@msullivan msullivan merged commit 12f9d72 into main Feb 10, 2026
4 of 5 checks passed
@msullivan msullivan deleted the generic-callable branch February 10, 2026 21:47
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.

2 participants