From 3df5b314f162c63036de8f03bd7b5674bf41cf5e Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Mon, 6 Jun 2022 18:00:23 +0100 Subject: [PATCH] Add type annotation to engine wrapper --- tts/engine_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tts/engine_wrapper.py b/tts/engine_wrapper.py index 8651d95..59df014 100644 --- a/tts/engine_wrapper.py +++ b/tts/engine_wrapper.py @@ -15,7 +15,7 @@ class TTSEngine: tts_function must take the arguments text and filepath. """ - def __init__(self, tts_function: function, reddit_object, path: str = "assets/mp3", max_length: int = 50): + def __init__(self, tts_function: function, reddit_object: dict, path: str = "assets/mp3", max_length: int = 50): self.tts_function = tts_function self.reddit_object = reddit_object self.path = path