diff options
Diffstat (limited to 'deckit/module.py')
| -rw-r--r-- | deckit/module.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deckit/module.py b/deckit/module.py index 9dad62a..9680c58 100644 --- a/deckit/module.py +++ b/deckit/module.py @@ -35,6 +35,9 @@ class Module: title: str state: Callable[[], dict] actions: dict[str, Callable[[dict], dict | None]] = field(default_factory=dict) + # action -> (content type, max bytes): actions that take a raw body, + # such as a voice clip, instead of a small JSON object. + uploads: dict[str, tuple[str, int]] = field(default_factory=dict) start: Callable[[], None] | None = None stop: Callable[[], None] | None = None |
