Commit 502ba6f465b6078c0bab66f6f0cc50b3047bf676

Authored by Sergio Oliveira
1 parent fe71a2b1

Moved abstractsignal methods to abstractmethod

Showing 1 changed file with 8 additions and 3 deletions   Show diff stats
colab/plugins/utils/signals.py
  1 +
  2 +from abc import abstractmethod
  3 +
  4 +
1 5 class AbstractSignal():
2 6  
  7 + @abstractmethod
3 8 def register_signal(self):
4   - raise(Exception, 'NOT IMPLEMENTED')
5   -
  9 + raise NotImplementedError
6 10  
  11 + @abstractmethod
7 12 def connect_signal(self):
8   - raise(Exception, 'NOT IMPLEMENTED')
  13 + raise NotImplementedError
... ...