pysepal.solara.notifications.notifier.NoopNotifier#

class pysepal.solara.notifications.notifier.NoopNotifier[source]#

Notifier that does nothing (used when no provider is mounted).

Nothing reaches the screen, so every message goes to the log instead. A dropped error is the one that matters: without this the app reports a failure and looks like it succeeded.

Methods

cancel

Log a cancel toast that nothing will display.

dismiss

No-op dismiss: nothing was displayed to dismiss.

error

Log an error toast that nothing will display.

info

Log an info toast that nothing will display.

success

Log a success toast that nothing will display.

track

Log the task and return a no-op tracker context manager.

warning

Log a warning toast that nothing will display.

NoopNotifier.cancel(message, *, timeout=None)[source]#

Log a cancel toast that nothing will display.

Parameters:
  • message (str)

  • timeout (float | None)

Return type:

None

NoopNotifier.dismiss(toast_id)[source]#

No-op dismiss: nothing was displayed to dismiss.

Parameters:

toast_id (str)

Return type:

None

NoopNotifier.error(message, *, timeout=None)[source]#

Log an error toast that nothing will display.

Parameters:
  • message (str)

  • timeout (float | None)

Return type:

None

NoopNotifier.info(message, *, timeout=None)[source]#

Log an info toast that nothing will display.

Parameters:
  • message (str)

  • timeout (float | None)

Return type:

None

NoopNotifier.success(message, *, timeout=None)[source]#

Log a success toast that nothing will display.

Parameters:
  • message (str)

  • timeout (float | None)

Return type:

None

NoopNotifier.track(title, total_steps=None)[source]#

Log the task and return a no-op tracker context manager.

Parameters:
  • title (str)

  • total_steps (int | None)

NoopNotifier.warning(message, *, timeout=None)[source]#

Log a warning toast that nothing will display.

Parameters:
  • message (str)

  • timeout (float | None)

Return type:

None