Skip to content

FR: Use makefun to clone function signatures in wrapper classes #375

Closed

Description

@tpham93

Describe the workflow you want to enable

A wrapper function should be able to have the same signature as the wrapped function in wrapper Classes.

Describe your proposed solution

Makefun provides decorators with which we can alter the function signatures.

Describe alternatives you've considered, if relevant

Currently, unused parameters are still shown in the function signature using inspect.signature. Thus, we had to throw warnings when those parameters were provided.

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions