class AbstractBaseClass:
  __metaclass__ = abc.ABCMeta
  @abc.abstractmethod
  def someMethod()
class DerviedClass(AbstractBaseClass):
  __metaclass__ = Singleton
  def someMethod():
    """dosomething"""
    pass
#defines singleton design pattern not defining for sake of simplicity 
class Singleton:
(see here Creating a singleton in Python)
I see following error
TypeError: Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
This seems to be becauase base class and derived class have two different metaclass defination. how do i go around this problem?
 
    