(self, f: WrappedFn)
return wrapped_f
Wrap a function for retrying.

        :param f: A function to wraps for retrying.
Wrap a function for retrying.
Wrap a function for retrying .
def wraps(self, f: WrappedFn) -> WrappedFn:
        """Wrap a function for retrying.

        :param f: A function to wraps for retrying.
        """

        @functools.wraps(f)
        def wrapped_f(*args: t.Any, **kw: t.Any) -> t.Any:
            return self(f, *args, **kw)

        def retry_with(*args: t.Any, **kwargs: t.Any) -> WrappedFn:
            return self.copy(*args, **kwargs).wraps(f)

        wrapped_f.retry = self
        wrapped_f.retry_with = retry_with

        return wrapped_f
def wraps ( self , f : WrappedFn ) -> WrappedFn : @ functools . wraps ( f ) def wrapped_f ( * args : t . Any , * * kw : t . Any ) -> t . Any : return self ( f , * args , * * kw ) def retry_with ( * args : t . Any , * * kwargs : t . Any ) -> WrappedFn : return self . copy ( * args , * * kwargs ) . wraps ( f ) wrapped_f . retry = self wrapped_f . retry_with = retry_with return wrapped_f