(self)
return self._is_heartbeat_supported() and self.get_heartbeat_interval() is not None
Check whether the storage enables the heartbeat.

        Returns:
            :obj:`True` if the storage supports the heartbeat and the return value of
            :meth:`~optuna.storages.BaseStorage.get_heartbeat_interval` is an integer,
            otherwise :obj:`False`.
Check whether the storage enables the heartbeat.
Check whether the storage enables the heartbeat .
def is_heartbeat_enabled(self) -> bool:
        """Check whether the storage enables the heartbeat.

        Returns:
            :obj:`True` if the storage supports the heartbeat and the return value of
            :meth:`~optuna.storages.BaseStorage.get_heartbeat_interval` is an integer,
            otherwise :obj:`False`.
        """
        return self._is_heartbeat_supported() and self.get_heartbeat_interval() is not None
def is_heartbeat_enabled ( self ) -> bool : return self . _is_heartbeat_supported ( ) and self . get_heartbeat_interval ( ) is not None