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
Log a cancel toast that nothing will display.
No-op dismiss: nothing was displayed to dismiss.
Log an error toast that nothing will display.
Log an info toast that nothing will display.
Log a success toast that nothing will display.
Log the task and return a no-op tracker context manager.
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