Fix documentation so it does not cause warnings by parsers #33
@@ -25,6 +25,7 @@ class CommandCallback(Protocol):
|
|||||||
def my_command(*command_parameters: str) -> None:
|
def my_command(*command_parameters: str) -> None:
|
||||||
prof.cons_show(f"Received: {command_parameters}")
|
prof.cons_show(f"Received: {command_parameters}")
|
||||||
|
|
||||||
|
.. :noindex:
|
||||||
"""
|
"""
|
||||||
def __call__(self, *command_parameters: str) -> None: ...
|
def __call__(self, *command_parameters: str) -> None: ...
|
||||||
|
|
||||||
@@ -38,6 +39,7 @@ class TimedCallback(Protocol):
|
|||||||
def my_timed_callback() -> None:
|
def my_timed_callback() -> None:
|
||||||
prof.cons_show("Timer triggered")
|
prof.cons_show("Timer triggered")
|
||||||
|
|
||||||
|
.. :noindex:
|
||||||
"""
|
"""
|
||||||
def __call__(self) -> None: ...
|
def __call__(self) -> None: ...
|
||||||
|
|
||||||
@@ -53,6 +55,7 @@ class WindowCallback(Protocol):
|
|||||||
def my_window_callback(win_id: str, message: str) -> None:
|
def my_window_callback(win_id: str, message: str) -> None:
|
||||||
prof.win_show(win_id, f"Processed: {message}")
|
prof.win_show(win_id, f"Processed: {message}")
|
||||||
|
|
||||||
|
.. :noindex:
|
||||||
"""
|
"""
|
||||||
def __call__(self, win_id: str, message: str) -> None: ...
|
def __call__(self, win_id: str, message: str) -> None: ...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user