Raise error instead of doing nothing for abstract methods
This commit is contained in:
@@ -17,12 +17,12 @@ class ItemGroupPrice(ContextMenu, metaclass=ABCMeta):
|
||||
@property
|
||||
@abstractmethod
|
||||
def label(self):
|
||||
...
|
||||
raise NotImplementedError()
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def optionName(self):
|
||||
...
|
||||
raise NotImplementedError()
|
||||
|
||||
def display(self, srcContext, selection):
|
||||
return srcContext in ("priceViewFull", "priceViewMinimal")
|
||||
|
||||
Reference in New Issue
Block a user