=
commited on
Commit
·
f6bfd56
1
Parent(s):
3553b8b
added exception on abstract methods
Browse files
deep_translator/parent.py
CHANGED
@@ -49,5 +49,5 @@ class BaseTranslator(ABC):
|
|
49 |
|
50 |
@abstractmethod
|
51 |
def translate(self, payload, **kwargs):
|
52 |
-
|
53 |
|
|
|
49 |
|
50 |
@abstractmethod
|
51 |
def translate(self, payload, **kwargs):
|
52 |
+
return NotImplemented('You need to implement the translate method!')
|
53 |
|