(self, *args, **kwargs)
Args:
            **kwargs: If kwargs contain 'timeout', assign the float value to
                self.timeout. If timeout is set, 'on_timeout' needs to be
                passed with kwargs as well or an AttributeError will be thrown
                if timeout is not passed or equal 0.
Args:
            **kwargs: If kwargs contain 'timeout', assign the float value to
                self.timeout. If timeout is set, 'on_timeout' needs to be
                passed with kwargs as well or an AttributeError will be thrown
                if timeout is not passed or equal 0.
Args : ** kwargs : If kwargs contain timeout assign the float value to self . timeout . If timeout is set on_timeout needs to be passed with kwargs as well or an AttributeError will be thrown if timeout is not passed or equal 0 .
def __init__(self, *args, **kwargs):
        """
        Args:
            **kwargs: If kwargs contain 'timeout', assign the float value to
                self.timeout. If timeout is set, 'on_timeout' needs to be
                passed with kwargs as well or an AttributeError will be thrown
                if timeout is not passed or equal 0.
        """
        self.timeout = kwargs.pop("timeout", 0)
        self._on_timeout = None
        if self.timeout > 0:
            try:
                self.on_timeout = kwargs.pop("on_timeout")
            except KeyError:
                raise AttributeError("Timeout state requires 'on_timeout' when timeout is set.")
        else:
            self._on_timeout = kwargs.pop("on_timeout", [])
        self.runner = {}
        super().__init__(*args, **kwargs)
def __init__ ( self , * args , * * kwargs ) : self . timeout = kwargs . pop ( "timeout" , 0 ) self . _on_timeout = None if self . timeout > 0 : try : self . on_timeout = kwargs . pop ( "on_timeout" ) except KeyError : raise AttributeError ( "Timeout state requires 'on_timeout' when timeout is set." ) else : self . _on_timeout = kwargs . pop ( "on_timeout" , [ ] ) self . runner = { } super ( ) . __init__ ( * args , * * kwargs )