from yapsy.IPlugin import IPlugin
from lib.methods import BaseMethod

class IMethodPlugin(BaseMethod, IPlugin):

  def __init__(self):
    pass

  def setNameAndFactory(self, name, factory):
    self.methodName = name
    self.factory = factory

from yapsy.IPlugin import IPlugin
from lib.methods import BaseMethod

class IMethodPlugin(BaseMethod, IPlugin):

  def __init__(self):
    pass

  def setNameAndFactory(self, name, factory):
    self.methodName = name
    self.factory = factory

  @staticmethod
  def supports(methodName):
    raise NotImplementedError

Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently

  from yapsy.IPlugin import IPlugin
  from lib.methods import BaseMethod
  
  class IMethodPlugin(BaseMethod, IPlugin):
  
    def __init__(self):
      pass
  
    def setNameAndFactory(self, name, factory):
      self.methodName = name
      self.factory = factory
  
+   @staticmethod
+   def supports(methodName):
+     raise NotImplementedError
+ 
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
## Code Before:
from yapsy.IPlugin import IPlugin
from lib.methods import BaseMethod

class IMethodPlugin(BaseMethod, IPlugin):

  def __init__(self):
    pass

  def setNameAndFactory(self, name, factory):
    self.methodName = name
    self.factory = factory

## Instruction:
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
## Code After:
from yapsy.IPlugin import IPlugin
from lib.methods import BaseMethod

class IMethodPlugin(BaseMethod, IPlugin):

  def __init__(self):
    pass

  def setNameAndFactory(self, name, factory):
    self.methodName = name
    self.factory = factory

  @staticmethod
  def supports(methodName):
    raise NotImplementedError
