diff --git a/platypush/plugins/stt/deepspeech.py b/platypush/plugins/stt/deepspeech.py index 84fd8b6d..3aaa7497 100644 --- a/platypush/plugins/stt/deepspeech.py +++ b/platypush/plugins/stt/deepspeech.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import queue import os import threading @@ -265,7 +263,7 @@ class SttDeepspeechPlugin(Plugin): speech = self._detect(buffer) return SpeechDetectedResponse(speech=speech) - def __enter__(self) -> SttDeepspeechPlugin: + def __enter__(self): """ Context manager enter. Starts detection and returns self. """