I have a class that has two methods that raise NotImplementedErrorand also inherits from an abstract class (a class that contains abstract methods from the package abc. This parent class, in turn, inherits from a class marked as abstract via __metaclass__ = ABCMeta). In this regard, warning R0921 occurs when starting pylint in my code. If I remove the pint NotImplementedErrors, this will not give this warning. Now I tried to disable R0921 for the class as follows:
class Wrapper(AbstractWrapper):
...
def func(self, kwargs**):
raise NotImplementedError
...
But that does not work. I still get the warning "Abstract class that is not referenced." What am I missing?
source
share