Like you said stated here and here, you could be able to this:
from typing import ParamSpec, TypeVar, Callable
import tenacity
P = ParamSpec("P")
R = TypeVar("R")
@tenacity.retry
def foo_with_retry(*args: P.args, **kwargs: P.kwargs) -> None:
foo(*args, **kwargs)