mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 00:36:21 +00:00
docs: move callbacks down
To improve readability of the docs
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user