Fix documentation so it does not cause warnings by parsers #33

Manually merged
jabber.developer merged 5 commits from docs/minor-fixes into master 2025-09-30 08:59:20 +00:00
4 changed files with 536 additions and 871 deletions
Showing only changes of commit 8849d9b79e - Show all commits

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