[Python] How to type a wrapper function without Any

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to type the following function without using Any?

    from typing import Any

    import tenacity

    @tenacity.retry
    def foo_with_retry(*args: Any, **kwargs: Any) -> None:
    foo(*args, **kwargs)


    Is ParamSpec applicable here?

    Continue reading...

Compartilhe esta Página