Skip to content

Adds get_function_signature_hook#9102

Merged
msullivan merged 4 commits intopython:masterfrom
sobolevn:issue-9101
Oct 18, 2020
Merged

Adds get_function_signature_hook#9102
msullivan merged 4 commits intopython:masterfrom
sobolevn:issue-9101

Conversation

@sobolevn
Copy link
Copy Markdown
Member

@sobolevn sobolevn commented Jul 6, 2020

This PR introduces get_function_signature_hook that behaves the similar way as get_method_signature_hook.

Closes #9101


return None

def apply_function_signature_hook(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would it be possible to merge this with apply_method_signature_hook? Maybe with a joint helper that takes formal args, callee, context, and the checker, and then pass different versions of that to the joint helper?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Actually I just did this myself

Copy link
Copy Markdown
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

This looks good, one request.

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.

New plugin hook: get_function_signature_hook

2 participants