Skip to content

Question: Partial callable signature #6077

Closed
@mehdigmira

Description

@mehdigmira

Hello,

When using decorators, we often know that the function that will be decorated should take param x and y, but we don't care about the rest of the parameters. Is there currently a way to do this ?
Something like Callable[[str,...], Any] would be perfect. It would work for f(x: str) but also for f(x: str, y: int) and f(x: str, *args, **kwargs)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions