Commit 502ba6f465b6078c0bab66f6f0cc50b3047bf676
1 parent
fe71a2b1
Exists in
master
and in
30 other branches
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 | class AbstractSignal(): | 5 | class AbstractSignal(): |
2 | 6 | ||
7 | + @abstractmethod | ||
3 | def register_signal(self): | 8 | def register_signal(self): |
4 | - raise(Exception, 'NOT IMPLEMENTED') | ||
5 | - | 9 | + raise NotImplementedError |
6 | 10 | ||
11 | + @abstractmethod | ||
7 | def connect_signal(self): | 12 | def connect_signal(self): |
8 | - raise(Exception, 'NOT IMPLEMENTED') | 13 | + raise NotImplementedError |