Skip to content

Adjusting the signature of a function on the basis of caller types in plugin #10216

Closed
@Paul-Ilyin

Description

@Paul-Ilyin

What is the proper way to adjust the signature of a function basing on actual caller types?
I have two ideas:

  1. using get_function_signature_hook, manually inferring all types from FunctionSigContext.args list
  2. using get_function_hook, calling FunctionContext.api.fail every time when arguments are invalid

Are there any better ways?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions