docs: move callbacks down

To improve readability of the docs
This commit is contained in:
2025-09-22 23:05:45 +02:00
parent 92cb930810
commit 8849d9b79e

View File

@@ -25,6 +25,7 @@ class CommandCallback(Protocol):
def my_command(*command_parameters: str) -> None:
prof.cons_show(f"Received: {command_parameters}")
.. :noindex:
"""
def __call__(self, *command_parameters: str) -> None: ...
@@ -38,6 +39,7 @@ class TimedCallback(Protocol):
def my_timed_callback() -> None:
prof.cons_show("Timer triggered")
.. :noindex:
"""
def __call__(self) -> None: ...
@@ -53,6 +55,7 @@ class WindowCallback(Protocol):
def my_window_callback(win_id: str, message: str) -> None:
prof.win_show(win_id, f"Processed: {message}")
.. :noindex:
"""
def __call__(self, win_id: str, message: str) -> None: ...