docs: move callbacks down
All checks were successful
CI API Docs / Test C API Documentation Generation (pull_request) Successful in 26s
CI API Docs / Test Python API Documentation Generation (pull_request) Successful in 28s
CI Code / Check coding style (pull_request) Successful in 36s
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Linux (debian) (pull_request) Successful in 13m40s
CI Code / Linux (ubuntu) (pull_request) Successful in 14m9s
CI Code / Linux (arch) (pull_request) Successful in 21m18s

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: ...