diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-04-09 15:44:38 +0100 |
|---|---|---|
| committer | PartyWumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-04-09 15:54:48 +0100 |
| commit | f9ff518e6d6368f65ead7634f459498b183081f2 (patch) | |
| tree | 4af2f6e8d3b8da6b01e4565518f416ab9af15d03 /backend/decky_loader/plugin/imports/decky.pyi | |
| parent | de9d2144a604506bf9499078147b7c0c899ccb65 (diff) | |
| download | decky-loader-f9ff518e6d6368f65ead7634f459498b183081f2.tar.gz decky-loader-f9ff518e6d6368f65ead7634f459498b183081f2.zip | |
attempt to add plugin events to the plugin frontend api.
unable to test right now though
Diffstat (limited to 'backend/decky_loader/plugin/imports/decky.pyi')
| -rw-r--r-- | backend/decky_loader/plugin/imports/decky.pyi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/decky_loader/plugin/imports/decky.pyi b/backend/decky_loader/plugin/imports/decky.pyi index 7a0dfa6a..50a0f66c 100644 --- a/backend/decky_loader/plugin/imports/decky.pyi +++ b/backend/decky_loader/plugin/imports/decky.pyi @@ -16,7 +16,7 @@ __version__ = '0.1.0' import logging -from typing import TypeVar, Type +from typing import Any """ Constants @@ -177,9 +177,8 @@ logger: logging.Logger """ Event handling """ -DataType = TypeVar("DataType") # TODO better docstring im lazy -async def emit(event: str, data: DataType | None = None, data_type: Type[DataType] | None = None) -> None: +async def emit(event: str, *args: Any) -> None: """ Send an event to the frontend. """
\ No newline at end of file |
