(
        self,
        sleep: t.Union[t.Callable[[t.Union[int, float]], None], object] = _unset,
        stop: t.Union["stop_base", object] = _unset,
        wait: t.Union["wait_base", object] = _unset,
        retry: t.Union[retry_base, object] = _unset,
        before: t.Union[t.Callable[["RetryCallState"], None], object] = _unset,
        after: t.Union[t.Callable[["RetryCallState"], None], object] = _unset,
        before_sleep: t.Union[t.Optional[t.Callable[["RetryCallState"], None]], object] = _unset,
        reraise: t.Union[bool, object] = _unset,
        retry_error_cls: t.Union[t.Type[RetryError], object] = _unset,
        retry_error_callback: t.Union[t.Optional[t.Callable[["RetryCallState"], t.Any]], object] = _unset,
    )
return self.__class__(
            sleep=_first_set(sleep, self.sleep),
            stop=_first_set(stop, self.stop),
            wait=_first_set(wait, self.wait),
            retry=_first_set(retry, self.retry),
            before=_first_set(before, self.before),
            after=_first_set(after, self.after),
            before_sleep=_first_set(before_sleep, self.before_sleep),
            reraise=_first_set(reraise, self.reraise),
            retry_error_cls=_first_set(retry_error_cls, self.retry_error_cls),
            retry_error_callback=_first_set(retry_error_callback, self.retry_error_callback),
        )
Copy this object with some parameters changed if needed.
Copy this object with some parameters changed if needed.
Copy this object with some parameters changed if needed .
def copy(
        self,
        sleep: t.Union[t.Callable[[t.Union[int, float]], None], object] = _unset,
        stop: t.Union["stop_base", object] = _unset,
        wait: t.Union["wait_base", object] = _unset,
        retry: t.Union[retry_base, object] = _unset,
        before: t.Union[t.Callable[["RetryCallState"], None], object] = _unset,
        after: t.Union[t.Callable[["RetryCallState"], None], object] = _unset,
        before_sleep: t.Union[t.Optional[t.Callable[["RetryCallState"], None]], object] = _unset,
        reraise: t.Union[bool, object] = _unset,
        retry_error_cls: t.Union[t.Type[RetryError], object] = _unset,
        retry_error_callback: t.Union[t.Optional[t.Callable[["RetryCallState"], t.Any]], object] = _unset,
    ) -> "BaseRetrying":
        """Copy this object with some parameters changed if needed."""
        return self.__class__(
            sleep=_first_set(sleep, self.sleep),
            stop=_first_set(stop, self.stop),
            wait=_first_set(wait, self.wait),
            retry=_first_set(retry, self.retry),
            before=_first_set(before, self.before),
            after=_first_set(after, self.after),
            before_sleep=_first_set(before_sleep, self.before_sleep),
            reraise=_first_set(reraise, self.reraise),
            retry_error_cls=_first_set(retry_error_cls, self.retry_error_cls),
            retry_error_callback=_first_set(retry_error_callback, self.retry_error_callback),
        )
def copy ( self , sleep : t . Union [ t . Callable [ [ t . Union [ int , float ] ] , None ] , object ] = _unset , stop : t . Union [ "stop_base" , object ] = _unset , wait : t . Union [ "wait_base" , object ] = _unset , retry : t . Union [ retry_base , object ] = _unset , before : t . Union [ t . Callable [ [ "RetryCallState" ] , None ] , object ] = _unset , after : t . Union [ t . Callable [ [ "RetryCallState" ] , None ] , object ] = _unset , before_sleep : t . Union [ t . Optional [ t . Callable [ [ "RetryCallState" ] , None ] ] , object ] = _unset , reraise : t . Union [ bool , object ] = _unset , retry_error_cls : t . Union [ t . Type [ RetryError ] , object ] = _unset , retry_error_callback : t . Union [ t . Optional [ t . Callable [ [ "RetryCallState" ] , t . Any ] ] , object ] = _unset , ) -> "BaseRetrying" : return self . __class__ ( sleep = _first_set ( sleep , self . sleep ) , stop = _first_set ( stop , self . stop ) , wait = _first_set ( wait , self . wait ) , retry = _first_set ( retry , self . retry ) , before = _first_set ( before , self . before ) , after = _first_set ( after , self . after ) , before_sleep = _first_set ( before_sleep , self . before_sleep ) , reraise = _first_set ( reraise , self . reraise ) , retry_error_cls = _first_set ( retry_error_cls , self . retry_error_cls ) , retry_error_callback = _first_set ( retry_error_callback , self . retry_error_callback ) , )