= commited on
Commit
f6bfd56
·
1 Parent(s): 3553b8b

added exception on abstract methods

Browse files
Files changed (1) hide show
  1. deep_translator/parent.py +1 -1
deep_translator/parent.py CHANGED
@@ -49,5 +49,5 @@ class BaseTranslator(ABC):
49
 
50
  @abstractmethod
51
  def translate(self, payload, **kwargs):
52
- pass
53
 
 
49
 
50
  @abstractmethod
51
  def translate(self, payload, **kwargs):
52
+ return NotImplemented('You need to implement the translate method!')
53